Skip to content

Commit ba843c4

Browse files
committed
chore(devctr): add libseccomp to devctr
Add libseccomp needed for updated seccompiler version Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
1 parent 555563b commit ba843c4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

tools/devctr/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ RUN apt-get update \
4848
&& apt-get -y install --no-install-recommends \
4949
# essential build tools
5050
gcc make libc-dev binutils-dev libssl-dev \
51+
# Needed for `seccompiler`.
52+
libseccomp-dev \
5153
# Useful utilities
5254
gdbserver \
5355
# Needed in order to be able to compile `userfaultfd-sys`.
@@ -137,6 +139,22 @@ RUN cd /usr/include/$ARCH-linux-musl \
137139
&& ln -s ../linux linux \
138140
&& ln -s ../asm-generic asm-generic
139141

142+
# Install static version of libseccomp
143+
#
144+
RUN apt-get update \
145+
&& apt-get -y install \
146+
libtool gperf \
147+
&& git clone https://github.com/seccomp/libseccomp /tmp/libseccomp \
148+
&& cd /tmp/libseccomp \
149+
&& ./autogen.sh \
150+
&& CC="musl-gcc -static" ./configure --enable-static=yes --enable-shared=false \
151+
&& make install \
152+
&& cd \
153+
&& apt-get purge -y \
154+
libtool gperf \
155+
&& apt-get autoremove -y \
156+
&& rm -rf /tmp/libseccomp
157+
140158
# Build iperf3-vsock
141159
RUN mkdir "$TMP_BUILD_DIR" && cd "$TMP_BUILD_DIR" \
142160
&& 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)