Skip to content

Instantly share code, notes, and snippets.

@davidrjonas
Last active February 23, 2022 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidrjonas/e4ea5ee0036ab11bc0c2c5171e660c39 to your computer and use it in GitHub Desktop.
Save davidrjonas/e4ea5ee0036ab11bc0c2c5171e660c39 to your computer and use it in GitHub Desktop.
Build dropwatch for Debian Buster
FROM debian:buster
# backports is required for checkinstall
RUN echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list
RUN apt-get update && apt-get install -y \
curl build-essential dh-autoreconf pkg-config \
libnl-3-dev libnl-genl-3-dev \
libpcap-dev binutils-dev libreadline-dev \
checkinstall
WORKDIR /usr/src
# https://github.com/nhorman/dropwatch/releases
RUN curl -L https://github.com/nhorman/dropwatch/archive/refs/tags/v1.5.3.tar.gz | tar xzv
WORKDIR /usr/src/dropwatch-1.5.3
RUN ./autogen.sh \
&& ./configure \
&& make \
&& checkinstall -y --requires=libnl-3-200,libnl-genl-3-200,libreadline7,libbinutils,libpcap0.8,libc6,libtinfo6,zlib1g
# /usr/src/dropwatch-1.5.3/dropwatch_1.5.3-1_amd64.deb
# In a Makefile:
# dropwatch_1.5.3-1_amd64.deb:
# docker build -t build-dropwatch .
# docker create --name build-dropwatch-temp build-dropwatch
# docker cp build-dropwatch-temp:/usr/src/dropwatch-1.5.3/dropwatch_1.5.3-1_amd64.deb .
# docker rm build-dropwatch-temp
#
# apt install ./dropwatch_1.5.3-1_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment