X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FDockerfile;h=93a4eebec6d9cd6fa59e3fb2378a3edfe3aec8b0;hb=bbfbce091795eb391c33984ada19ce0b7d2da616;hp=a3cb31650dc650814375c05b8b59bba208f9c58d;hpb=6d8a34f0584eac025fa0d56a49ba965432da0b4c;p=osm%2FPOL.git diff --git a/docker/Dockerfile b/docker/Dockerfile index a3cb316..93a4eeb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,17 +20,19 @@ # 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.* python3-pip=20.0.* libmysqlclient-dev=8.0.* git mysql-client=8.0.* \ + && pip3 install pip==21.3.1 COPY requirements.txt /policy_module/requirements.txt +COPY requirements-dev.txt /policy_module/requirements-dev.txt RUN pip3 install -r /policy_module/requirements.txt +RUN pip3 install -r /policy_module/requirements-dev.txt COPY . /policy_module @@ -47,7 +49,7 @@ ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db ENV OSMPOL_GLOBAL_LOGLEVEL INFO -HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ +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