Need openssl 1.0.2.
@@ -3,8 +3,8 @@ LABEL maintainer="Charlie Lewis <clewis@iqt.org>" \
vent="" \
vent.name="ncapture" \
vent.groups="collection,hidden,network,network_tap_child"
-# TODO: remove custom libcap/tcpdump when cut over to tracepcapd
-# tracepcapd is built first before tcpdump.
+# TODO: remove custom libcap/tcpdump when cut over to tracepcapd; tracepcapd is built first before tcpdump.
+# TODO: libwdcap currently requires openssl 1.0.2
RUN apk add --update \
autoconf \
automake \
@@ -18,6 +18,7 @@ RUN apk add --update \
libpcap-dev \
linux-headers \
musl-dev \
+ yaml-dev \
&& rm -rf /var/cache/apk/* \
&& mkdir /src \
&& cd /src \
@@ -25,6 +26,7 @@ RUN apk add --update \
&& git clone https://github.com/cglewis/tcpdump.git \
&& git clone https://github.com/wanduow/wandio.git \
&& git clone https://github.com/LibtraceTeam/libtrace.git \
+ && git clone https://github.com/openssl/openssl -b OpenSSL_1_0_2s \
&& git clone https://github.com/wanduow/libwdcap.git \
&& cd /src/wandio \
&& ./bootstrap.sh \
@@ -34,14 +36,17 @@ RUN apk add --update \
&& ./bootstrap.sh \
&& ./configure \
&& make && make install \
- && apk del libpcap-dev libpcap \
+ && cd /src/openssl \
+ && ./config --prefix=/usr/local --openssldir=/usr/local/openssl \
+ && make && make install \
&& cd /src/libwdcap \
&& ./bootstrap.sh \
- && ./configure \
+ && ./configure --disable-shared \
&& make && make install \
&& cd examples \
&& gcc -o tracecapd tracecapd.c -ltrace -lwdcap \
&& cp tracecapd /usr/local/bin \
+ && apk del libpcap-dev libpcap \
&& cd /src/libpcap \
&& ./configure \
&& make && make install \
