Last active
February 23, 2022 21:56
-
-
Save davidrjonas/e4ea5ee0036ab11bc0c2c5171e660c39 to your computer and use it in GitHub Desktop.
Build dropwatch for Debian Buster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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