X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FPOL%2FDockerfile;h=22653e374dda7239291b444852019d26c739977c;hb=1233df73c57b1c72e282218839c18b139b3b5aa6;hp=72d73fd2ac8b1bf817aa80d5fff7825b9c2982f5;hpb=d7449362766262e09ec63ada999e03ded530f907;p=osm%2Fdevops.git diff --git a/docker/POL/Dockerfile b/docker/POL/Dockerfile index 72d73fd2..22653e37 100644 --- a/docker/POL/Dockerfile +++ b/docker/POL/Dockerfile @@ -32,7 +32,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ python3-setuptools=45.2.* \ curl=7.68.* -RUN DEBIAN_FRONTEND=noninteractive apt-get --yes install \ +RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ + DEBIAN_FRONTEND=noninteractive apt-get --yes install \ mysql-client-core-8.0=8.0.* ARG PYTHON3_OSM_COMMON_URL @@ -62,6 +63,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ python3-minimal=3.8.* \ && rm -rf /var/lib/apt/lists/* +RUN rm -f /etc/apt/apt.conf.d/proxy.conf + COPY --from=INSTALL /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages COPY --from=INSTALL /usr/local/lib/python3.8/dist-packages /usr/local/lib/python3.8/dist-packages COPY --from=INSTALL /usr/bin/osm* /usr/bin/ @@ -99,6 +102,10 @@ ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db ENV OSMPOL_GLOBAL_LOG_LEVEL INFO +ENV OSMPOL_AUTOHEAL_ENABLED True + +ENV OSMPOL_AUTOSCALE_ENABLED True + HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 \ CMD osm-pol-healthcheck || exit 1