diff --git a/tools/devctr/Dockerfile b/tools/devctr/Dockerfile index f0c7c36f759..492f2ff2923 100644 --- a/tools/devctr/Dockerfile +++ b/tools/devctr/Dockerfile @@ -48,6 +48,8 @@ RUN apt-get update \ && apt-get -y install --no-install-recommends \ # essential build tools gcc make libc-dev binutils-dev libssl-dev \ + # Needed for `seccompiler`. + libseccomp-dev \ # Useful utilities gdbserver \ # Needed in order to be able to compile `userfaultfd-sys`. @@ -137,6 +139,22 @@ RUN cd /usr/include/$ARCH-linux-musl \ && ln -s ../linux linux \ && ln -s ../asm-generic asm-generic +# Install static version of libseccomp +# +RUN apt-get update \ + && apt-get -y install \ + libtool gperf \ + && git clone https://github.com/seccomp/libseccomp /tmp/libseccomp \ + && cd /tmp/libseccomp \ + && ./autogen.sh \ + && CC="musl-gcc -static" ./configure --enable-static=yes --enable-shared=false \ + && make install \ + && cd \ + && apt-get purge -y \ + libtool gperf \ + && apt-get autoremove -y \ + && rm -rf /tmp/libseccomp + # Build iperf3-vsock RUN mkdir "$TMP_BUILD_DIR" && cd "$TMP_BUILD_DIR" \ && git clone https://github.com/stefano-garzarella/iperf-vsock \ diff --git a/tools/devtool b/tools/devtool index 3e0bc857ed5..85e1145587f 100755 --- a/tools/devtool +++ b/tools/devtool @@ -68,7 +68,7 @@ DEVCTR_IMAGE_NO_TAG="public.ecr.aws/firecracker/fcuvm" # Development container tag -DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v75} +DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v76} # Development container image (name:tag) # This should be updated whenever we upgrade the development container.