projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(healthcheck): new flag implemented as a file for health checking in POL (it only...
[osm/POL.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index
2ca3fc4
..
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,6
+47,7
@@
ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
-CMD osm-policy-agent
+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