From 08c224c5ab057a7a68926956c65bac906c6d81fd Mon Sep 17 00:00:00 2001 From: Andrei Stan Date: Tue, 23 Apr 2024 23:02:16 +0300 Subject: [PATCH] build(xen): Add container for Xen enabled builds Signed-off-by: Andrei Stan --- buildenvs/xen.Dockerfile | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 buildenvs/xen.Dockerfile diff --git a/buildenvs/xen.Dockerfile b/buildenvs/xen.Dockerfile new file mode 100644 index 000000000..11e3ceba6 --- /dev/null +++ b/buildenvs/xen.Dockerfile @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. +# Licensed under the BSD-3-Clause License (the "License"). +# You may not use this file except in compliance with the License. + +FROM kraftkit.sh/base-golang:latest + +RUN set -xe; \ + apt-get update; \ + apt-get install -y \ + binutils \ + bison \ + build-essential \ + cmake \ + flex \ + gcc \ + git \ + iasl \ + libglib2.0-dev \ + libncurses5-dev \ + libpixman-1-dev \ + libslirp-dev \ + libssh2-1-dev \ + libssl-dev \ + libyajl-dev \ + make \ + ninja-build \ + perl \ + pkg-config \ + python3 \ + python3-pip \ + python3-setuptools \ + python3-wheel \ + uuid-dev; \ + pip3 install python-config --break-system-packages; \ + git clone -b stable-4.18 https://xenbits.xen.org/git-http/xen.git /xen; \ + cd /xen; \ + ./configure; \ + make -j $(nproc) install-tools; \ + apt-get clean; \ + rm -rf /var/lib/apt/lists/*; \ + ldconfig; + +WORKDIR /go/src/kraftkit.sh + +COPY . . + +ENV DOCKER= +ENV GOROOT=/usr/local/go +ENV KRAFTKIT_LOG_LEVEL=debug +ENV KRAFTKIT_LOG_TYPE=basic +ENV PAGER=cat +ENV PATH=$PATH:/go/src/kraftkit.sh/dist