Skip to content

Commit 5224cf3

Browse files
committed
chore(devctr): add libseccomp to devctr
Build static version of libseccomp with `musl-gcc`. This is needed for our musl builds as the version shipped in the ubuntu package is not compiled with `musl-gcc` and produces linker errors. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 761909d commit 5224cf3

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tools/devctr/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,22 @@ RUN cd /usr/include/$ARCH-linux-musl \
137137
&& ln -s ../linux linux \
138138
&& ln -s ../asm-generic asm-generic
139139

140+
# Install static version of libseccomp
141+
#
142+
RUN apt-get update \
143+
&& apt-get -y install \
144+
libtool gperf \
145+
&& git clone https://github.com/seccomp/libseccomp /tmp/libseccomp \
146+
&& cd /tmp/libseccomp \
147+
&& ./autogen.sh \
148+
&& CC="musl-gcc -static" ./configure --enable-static=yes --enable-shared=false \
149+
&& make install \
150+
&& cd \
151+
&& apt-get purge -y \
152+
libtool gperf \
153+
&& apt-get autoremove -y \
154+
&& rm -rf /tmp/libseccomp
155+
140156
# Build iperf3-vsock
141157
RUN mkdir "$TMP_BUILD_DIR" && cd "$TMP_BUILD_DIR" \
142158
&& git clone https://github.com/stefano-garzarella/iperf-vsock \

tools/devtool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
DEVCTR_IMAGE_NO_TAG="public.ecr.aws/firecracker/fcuvm"
6969

7070
# Development container tag
71-
DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v75}
71+
DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v76}
7272

7373
# Development container image (name:tag)
7474
# This should be updated whenever we upgrade the development container.

0 commit comments

Comments
 (0)