-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 903 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 903 Bytes
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
FROM examonhpc/examon:0.3.3
ENV EXAMON_HOME /etc/examon_deploy/examon
# Copy app
ADD ./publishers/random_pub ${EXAMON_HOME}/publishers/random_pub
ADD ./docker/examon/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
ADD ./scripts/examon.conf $EXAMON_HOME/scripts/examon.conf
ADD ./web $EXAMON_HOME/web
# Venvs
WORKDIR $EXAMON_HOME/scripts
RUN virtualenv -p $(which python) py3_env
ENV PIP $EXAMON_HOME/scripts/ve/bin/pip
ENV S_PIP $EXAMON_HOME/scripts/py3_env/bin/pip
# Install
WORKDIR $EXAMON_HOME/lib/examon-common
RUN $S_PIP install .
# Random publisher
WORKDIR $EXAMON_HOME/publishers/random_pub
RUN $PIP install -r requirements.txt
# Web
WORKDIR $EXAMON_HOME/web
RUN virtualenv -p $(which python) flask
RUN CASS_DRIVER_BUILD_CONCURRENCY=8 flask/bin/pip install -r ./examon-server/requirements.txt
WORKDIR $EXAMON_HOME/scripts
EXPOSE 1883 5000 9001
CMD ["./frontend_ctl.sh", "start"]