-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile.ntopng
32 lines (24 loc) · 1.11 KB
/
Dockerfile.ntopng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:24.04
MAINTAINER ntop.org
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
RUN apt-get update && \
apt-get -y -q install apt-utils wget lsb-release gnupg libelf1 tzdata && \
wget -q http://apt-stable.ntop.org/24.04/all/apt-ntop-stable.deb && \
dpkg -i apt-ntop-stable.deb && \
apt-get clean all
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get update && \
apt-get -y -q install apt-transport-https ca-certificates dirmngr && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8919F6BD2B48D754 && \
echo "deb https://packages.clickhouse.com/deb stable main" | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get update && \
apt-get -y -q install clickhouse-client
RUN apt-get update && \
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
apt-get -y install ntopng ntopng-data
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"]