X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FPOL%2FDockerfile;h=43a271ea9b8e932ad42b0272bc0c5b1183311d3c;hb=a4a37f7f9f5410ff2c7833b76bdc85f752c74849;hp=8a39a858d5877b12600ab133cf8e789dba6b1cd4;hpb=e6f7b45be6a99a99c21ced24282163f982697357;p=osm%2Fdevops.git diff --git a/docker/POL/Dockerfile b/docker/POL/Dockerfile index 8a39a858..43a271ea 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=ReleaseEIGHT-daily ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg ARG REPOSITORY=testing @@ -47,6 +42,8 @@ ARG COMMON_VERSION RUN apt-get --yes update && apt-get -y install python3-osm-policy-module${POL_VERSION} +COPY scripts/ scripts/ + ENV OSMPOL_MESSAGE_DRIVER kafka ENV OSMPOL_MESSAGE_HOST kafka ENV OSMPOL_MESSAGE_PORT 9092 @@ -58,4 +55,7 @@ ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db ENV OSMPOL_GLOBAL_LOG_LEVEL INFO -CMD osm-policy-agent +HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 \ + CMD osm-pol-healthcheck || exit 1 + +CMD /bin/bash scripts/start.sh