-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 1.39 KB
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
33
34
35
36
37
FROM debian:buster
MAINTAINER Ibere Luiz Di Tizio Junior <ibere.tizio@gmail.com>
ARG VERSION_SERVER=3.6.252
ARG VERSION_DIR=3.6
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && apt-get update && \
apt-get install -y --no-install-recommends gnupg2 apt-transport-https ca-certificates procps curl vim netcat locales snmp && \
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && dpkg-reconfigure --frontend noninteractive locales && \
apt-get -qq clean
RUN curl -sL http://packages.netxms.org/netxms.gpg | apt-key add - && \
echo "deb http://packages.netxms.org/debian/ buster main" > /etc/apt/sources.list.d/netxms.list && \
apt-get update && apt-get -y install libssl1.1 libzmq5 && \
apt-get -y install netxms-server=${VERSION_SERVER}-1 netxms-dbdrv-mysql=${VERSION_SERVER}-1 && \
apt-get clean && \
curl -O https://www.netxms.org/download/releases/${VERSION_DIR}/nxshell-${VERSION_SERVER}.jar && \
mkdir -p /usr/share/netxms/default-templates && \
mv /usr/share/netxms/templates/* /usr/share/netxms/default-templates/
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US \
LC_ALL=en_US.UTF-8 \
UNLOCK_ON_STARTUP=1 \
UPGRADE_ON_STARTUP=1 \
DEBUG_LEVEL=7
VOLUME /data
EXPOSE 4701 4703
EXPOSE 514/udp
COPY ./docker-entrypoint.sh /
RUN chmod 755 /docker-entrypoint.sh
CMD ["/docker-entrypoint.sh"]