Adds OSMUI_SQL_DATABASE_URI env var generation to installer 80/7480/6
authorBenjamin Diaz <bdiaz@whitestack.com>
Tue, 21 May 2019 18:11:49 +0000 (15:11 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Wed, 22 May 2019 16:53:26 +0000 (13:53 -0300)
Adds install of mysql deps in LWUI Dockerfile.
Adds use of entrypoint script in LWUI Dockerfile

Change-Id: Iab709bd534291083d4890dd33e9f3c490d11cea1
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
docker/light-ui/Dockerfile
installers/docker/docker-compose.yaml
installers/full_install_osm.sh

index 1e54567..29cbb74 100644 (file)
@@ -1,6 +1,6 @@
 FROM ubuntu:16.04
 
-RUN apt-get update && apt-get install -y npm git python-pip nginx supervisor curl software-properties-common
+RUN apt-get update && apt-get install -y npm git python-pip nginx supervisor curl software-properties-common libmysqlclient-dev mysql-client
 RUN npm install -g bower
 RUN ln -s /usr/bin/nodejs /usr/bin/node
 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
index f608262..d8866e5 100644 (file)
@@ -174,5 +174,7 @@ services:
       OSM_SERVER: nbi
     #depends_on:
     #  - nbi
+    env_file:
+      - ./lwui.env
     ports:
       - "${OSM_UI_PORTS:-80:80}"
index c1380d5..3276b14 100755 (executable)
@@ -834,6 +834,11 @@ function generate_docker_env_files() {
         echo "OSMPOL_SQL_DATABASE_URI=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/pol" | $WORKDIR_SUDO tee -a $OSM_DOCKER_WORK_DIR/pol.env
     fi
 
+    # LW-UI
+    if [ ! -f $OSM_DOCKER_WORK_DIR/lwui.env ]; then
+        echo "OSMUI_SQL_DATABASE_URI=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/lwui" | $WORKDIR_SUDO tee -a $OSM_DOCKER_WORK_DIR/lwui.env
+    fi
+
     echo "Finished generation of docker env files"
 }