Skip to content

Commit

Permalink
chore(devctr): add libseccomp to devctr
Browse files Browse the repository at this point in the history
Add libseccomp needed for updated seccompiler version

Signed-off-by: Egor Lazarchuk <[email protected]>
  • Loading branch information
ShadowCurse committed Nov 29, 2024
1 parent 555563b commit ba843c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions tools/devctr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ba843c4

Please sign in to comment.