Skip to content

Commit

Permalink
build(xen): Add container for Xen enabled builds
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Stan <[email protected]>
  • Loading branch information
andreistan26 committed May 7, 2024
1 parent cd9899a commit 08c224c
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions buildenvs/xen.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08c224c

Please sign in to comment.