X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FDockerfile;h=892eff11146fb7f6a03aa031ed69e5e0cba64b4a;hb=7a174797846b23398a51e4a1568063b2bc83d481;hp=60dbeae69b3f4b5497a9de6b0240a01a053e79e2;hpb=e13b5327479be26b14754fd8d89c13f359e56349;p=osm%2FPOL.git diff --git a/docker/Dockerfile b/docker/Dockerfile index 60dbeae..892eff1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,13 +20,13 @@ # 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 \ - && pip3 install pip==9.0.3 + && apt-get --yes install python3=3.8.2-0ubuntu2 python3-pip=20.0.2-5ubuntu1.1 libmysqlclient-dev=8.0.23-0ubuntu0.20.04.1 git mysql-client=8.0.23-0ubuntu0.20.04.1 \ + && pip3 install pip==21.0.1 COPY requirements.txt /policy_module/requirements.txt @@ -47,4 +47,7 @@ ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db 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