Skip to content

Commit cb8812c

Browse files
committed
build(xen): Add container for Xen enabled builds
Signed-off-by: Andrei Stan <[email protected]>
1 parent 809c655 commit cb8812c

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

buildenvs/xen.Dockerfile

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors.
3+
# Licensed under the BSD-3-Clause License (the "License").
4+
# You may not use this file except in compliance with the License.
5+
6+
FROM kraftkit.sh/base-golang:latest
7+
8+
RUN set -xe; \
9+
apt-get update; \
10+
apt-get install -y \
11+
binutils \
12+
bison \
13+
build-essential \
14+
cmake \
15+
flex \
16+
gcc \
17+
git \
18+
iasl \
19+
libglib2.0-dev \
20+
libncurses5-dev \
21+
libpixman-1-dev \
22+
libslirp-dev \
23+
libssh2-1-dev \
24+
libssl-dev \
25+
libyajl-dev \
26+
make \
27+
ninja-build \
28+
perl \
29+
pkg-config \
30+
python3 \
31+
python3-pip \
32+
python3-setuptools \
33+
python3-wheel \
34+
uuid-dev; \
35+
pip3 install python-config --break-system-packages; \
36+
git clone -b stable-4.18 https://xenbits.xen.org/git-http/xen.git /xen; \
37+
cd /xen; \
38+
./configure; \
39+
make -j install-tools; \
40+
apt-get clean; \
41+
rm -rf /var/lib/apt/lists/*; \
42+
ldconfig;
43+
44+
WORKDIR /go/src/kraftkit.sh
45+
46+
COPY . .
47+
48+
ENV DOCKER=
49+
ENV GOROOT=/usr/local/go
50+
ENV KRAFTKIT_LOG_LEVEL=debug
51+
ENV KRAFTKIT_LOG_TYPE=basic
52+
ENV PAGER=cat
53+
ENV PATH=$PATH:/go/src/kraftkit.sh/dist

0 commit comments

Comments
 (0)