projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coverity-CWE 330: Use of Insufficiently Random Values (137944 Cryptographically weak...
[osm/POL.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index
a3cb316
..
c83999c
100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-20,17
+20,19
@@
# contact: bdiaz@whitestack.com or glavado@whitestack.com
##
# 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 \
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.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.txt
+RUN pip3 install -r /policy_module/requirements-dev.txt
COPY . /policy_module
COPY . /policy_module
@@
-47,7
+49,11
@@
ENV OSMPOL_SQL_DATABASE_URI sqlite:///policy_module.db
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
ENV OSMPOL_GLOBAL_LOGLEVEL INFO
-HEALTHCHECK --interval=5s --timeout=2s --retries=12 \
+ENV OSMPOL_AUTOHEAL_ENABLED True
+
+ENV OSMPOL_AUTOSCALE_ENABLED True
+
+HEALTHCHECK --interval=10s --timeout=5s --retries=10 --start-period=30s \
CMD osm-pol-healthcheck || exit 1
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