Skip to content

Commit de80768

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]> Signed-off-by: Patrick Roy <[email protected]>
1 parent 85ebd24 commit de80768

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tools/devctr/Dockerfile

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

150+
# Install static version of libseccomp
151+
#
152+
RUN apt-get update \
153+
&& apt-get -y install \
154+
libtool gperf \
155+
&& git clone https://github.com/seccomp/libseccomp /tmp/libseccomp \
156+
&& cd /tmp/libseccomp \
157+
&& ./autogen.sh \
158+
&& CC="musl-gcc -static" ./configure --enable-static=yes --enable-shared=false \
159+
&& make install \
160+
&& cd \
161+
&& apt-get purge -y \
162+
libtool gperf \
163+
&& apt-get autoremove -y \
164+
&& rm -rf /tmp/libseccomp
165+
150166
# Build iperf3-vsock
151167
RUN mkdir "$TMP_BUILD_DIR" && cd "$TMP_BUILD_DIR" \
152168
&& git clone https://github.com/stefano-garzarella/iperf-vsock \

0 commit comments

Comments
 (0)