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
60dbeae
..
7045b0f
100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-20,9
+20,9
@@
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
-FROM ubuntu:
16
.04
+FROM ubuntu:
20
.04
-LABEL authors="Benjamín Díaz"
+LABEL authors="Benjamín Díaz
, Fabián Bravo
"
RUN apt-get --yes update \
&& apt-get --yes install python3 python3-pip libmysqlclient-dev git mysql-client \
RUN apt-get --yes update \
&& apt-get --yes install python3 python3-pip libmysqlclient-dev git mysql-client \
@@
-47,4
+47,7
@@
ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
+HEALTHCHECK --interval=10s --timeout=5s --retries=10 --start-period=30s \
+ CMD osm-pol-healthcheck || exit 1
+
CMD /bin/bash /policy_module/docker/scripts/start.sh
\ No newline at end of file
CMD /bin/bash /policy_module/docker/scripts/start.sh
\ No newline at end of file