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>
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
OSM_SERVER: nbi
#depends_on:
# - nbi
+ env_file:
+ - ./lwui.env
ports:
- "${OSM_UI_PORTS:-80:80}"
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"
}