X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FPOL%2FDockerfile;h=879e91c7eb90777e4a76b13fabfb5ae9c0d83d59;hb=da0e40f9a97f7517c1f4a49d6759f4063078f525;hp=148e7421153d1c02ca2569fb0c0c3542608baa3e;hpb=04560880c2acab243ca610897e3630c62bc6d427;p=osm%2Fdevops.git diff --git a/docker/POL/Dockerfile b/docker/POL/Dockerfile index 148e7421..879e91c7 100644 --- a/docker/POL/Dockerfile +++ b/docker/POL/Dockerfile @@ -24,18 +24,13 @@ FROM ubuntu:16.04 LABEL authors="Benjamín Díaz" -RUN apt-get --yes update \ - && apt-get --yes install python3 python3-pip libmysqlclient-dev git \ - && pip3 install pip==9.0.3 - -RUN apt-get update && apt-get -y install curl software-properties-common - RUN apt-get --yes update \ && apt-get --yes install git python python-pip python3 python3-pip libmysqlclient-dev libssl-dev libffi-dev \ + && apt-get --yes install mysql-client curl software-properties-common \ && pip3 install pip==9.0.3 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian -ARG RELEASE=ReleaseFOUR-daily +ARG RELEASE=ReleaseNINE-daily ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg ARG REPOSITORY=testing @@ -60,4 +55,7 @@ ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db ENV OSMPOL_GLOBAL_LOG_LEVEL INFO +HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 \ + CMD osm-pol-healthcheck || exit 1 + CMD /bin/bash scripts/start.sh