X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FPOL%2FDockerfile;h=6de7c717b789aba0d104bdaf65b3f790848612b5;hb=3edf018e1ad5b9d8875e41733ac38ebf9c53e2a6;hp=1eb86344564b9790a29e4858d434397553878bd1;hpb=95c0173af060c3f475fdac79c4480d6ba38bf39b;p=osm%2Fdevops.git diff --git a/docker/POL/Dockerfile b/docker/POL/Dockerfile index 1eb86344..6de7c717 100644 --- a/docker/POL/Dockerfile +++ b/docker/POL/Dockerfile @@ -24,14 +24,9 @@ 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 @@ -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 @@ -56,6 +53,9 @@ ENV OSMPOL_DATABASE_URI mongodb://mongo:27017 ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db -ENV OSMPOL_LOG_LEVEL INFO +ENV OSMPOL_GLOBAL_LOG_LEVEL INFO + +HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ + CMD osm-pol-healthcheck || exit 1 -CMD osm-policy-agent +CMD /bin/bash scripts/start.sh