projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(aiokafka): version now fixed to 0.6.0 (this is the latest at the moment)
[osm/POL.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index
91bc5f6
..
a3cb316
100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-25,7
+25,7
@@
FROM ubuntu:16.04
LABEL authors="Benjamín Díaz"
RUN apt-get --yes update \
LABEL authors="Benjamín Díaz"
RUN apt-get --yes update \
- && apt-get --yes install python3 python3-pip libmysqlclient-dev git \
+ && apt-get --yes install python3 python3-pip libmysqlclient-dev git
mysql-client
\
&& pip3 install pip==9.0.3
COPY requirements.txt /policy_module/requirements.txt
&& pip3 install pip==9.0.3
COPY requirements.txt /policy_module/requirements.txt
@@
-45,7
+45,9
@@
ENV OSMPOL_DATABASE_URI mongodb://mongo:27017
ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db
ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db
-ENV OSMPOL_LOG_LEVEL INFO
-ENV OSMPOL_KAFKA_LOG_LEVEL WARN
+ENV OSMPOL_GLOBAL_LOGLEVEL INFO
-CMD osm-policy-agent
+HEALTHCHECK --interval=5s --timeout=2s --retries=12 \
+ CMD osm-pol-healthcheck || exit 1
+
+CMD /bin/bash /policy_module/docker/scripts/start.sh
\ No newline at end of file