-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
51 lines (38 loc) · 1.09 KB
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM python:3.12
# Define version variable
ENV EXAMON_COMMON_VERSION=v0.2.6
RUN echo "deb https://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list
RUN apt-get update && apt-get install -y \
libblas-dev \
liblapack-dev \
liblapacke-dev \
gfortran \
ipmitool \
mosquitto \
mosquitto-clients \
snmp \
snmp-mibs-downloader \
pypy3 \
pypy3-dev \
sshpass \
supervisor \
nano \
apt-transport-https \
ca-certificates \
python3-virtualenv \
git \
&& rm -rf /var/lib/apt/lists/*
COPY ./examon_deploy /etc/examon_deploy
COPY ./supervisord.conf /etc/supervisor
COPY ./supervisor.conf /etc/supervisor/conf.d
ENV EXAMON_HOME /etc/examon_deploy/examon
WORKDIR $EXAMON_HOME/scripts
RUN virtualenv -p pypy3 ve
ENV PIP $EXAMON_HOME/scripts/ve/bin/pip
RUN $PIP install git+https://github.com/ExamonHPC/examon-common.git@${EXAMON_COMMON_VERSION}
WORKDIR $EXAMON_HOME/subscribers/mqtt2kairosdb_queue
RUN $PIP install -r requirements.txt
WORKDIR $EXAMON_HOME/scripts
RUN chmod +x ./frontend_ctl.sh
EXPOSE 1883 9001
CMD ["./frontend_ctl.sh", "start"]