X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FDockerfile;h=7045b0fb8252d7f78bdf8fefac48188736894702;hb=refs%2Ftags%2Fv8.0.0;hp=7f570365e8d41898aefab68abae0ccc1d076837c;hpb=a14cf16181c8b39f12c872c486e0b292c0068944;p=osm%2FPOL.git diff --git a/docker/Dockerfile b/docker/Dockerfile index 7f57036..7045b0f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,12 +20,12 @@ # 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 \ + && 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 @@ -45,6 +45,9 @@ ENV OSMPOL_DATABASE_URI mongodb://mongo:27017 ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db -ENV OSMPOL_GLOBAL_LOG_LEVEL 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