[mod] ntopng
This commit is contained in:
parent
68db35223c
commit
8655667cd0
@ -1,13 +1,24 @@
|
|||||||
FROM ubuntu:focal
|
# from: https://github.com/ntop/docker-ntop/blob/master/Dockerfile.ntopng-arm64
|
||||||
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y upgrade \
|
# Main dependencies and ntop.org apt package repo installation
|
||||||
&& echo "8 48" | apt-get install -y software-properties-common wget curl \
|
RUN apt-get update && \
|
||||||
&& add-apt-repository universe \
|
apt-get -y -q install software-properties-common wget lsb-release gnupg libelf1 && \
|
||||||
&& wget https://packages.ntop.org/apt-stable/20.04/all/apt-ntop-stable.deb \
|
wget -q http://packages.ntop.org/RaspberryPI/apt-ntop_1.0.190416-469_all.deb && \
|
||||||
&& apt install -y ./apt-ntop-stable.deb \
|
apt-get -y -q install ./apt-ntop_1.0.190416-469_all.deb
|
||||||
&& apt-get install -y ntopng \
|
|
||||||
&& systemctl enable ntopng
|
|
||||||
|
|
||||||
RUN mkdir /ntopngcustom \
|
# ntopng, some of its dependencies and libcap2 / libzstd1 need to be armhf
|
||||||
&& chmod 777 /ntopngcustom
|
# architecture, because latest ntopng (4.3) is not available in arm64
|
||||||
|
RUN apt-get clean all && \
|
||||||
|
dpkg --add-architecture armhf && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get -y -q install ntopng:armhf libcap2:armhf libzstd1:armhf
|
||||||
|
|
||||||
|
|
||||||
|
RUN echo '#!/bin/bash\n/etc/init.d/redis-server start\nntopng "$@" "$NTOP_CONFIG"' > /run.sh && \
|
||||||
|
chmod +x /run.sh
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
ENTRYPOINT ["/run.sh"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user