Modifies POL deployment to use mysql database
Adds script to automatically create database if not existant.
Adds generation of db env var to install script.
Change-Id: I334ffe2a2f9c2570cf94454948e23f1ce4b5aee7
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
diff --git a/docker/POL/Dockerfile b/docker/POL/Dockerfile
index 8a39a85..148e742 100644
--- a/docker/POL/Dockerfile
+++ b/docker/POL/Dockerfile
@@ -47,6 +47,8 @@
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 +60,4 @@
ENV OSMPOL_GLOBAL_LOG_LEVEL INFO
-CMD osm-policy-agent
+CMD /bin/bash scripts/start.sh