Skip to content
Snippets Groups Projects
Commit 4088a9bd authored by diazb's avatar diazb
Browse files

Adds OSMUI_SQL_DATABASE_URI env var generation to installer


Adds install of mysql deps in LWUI Dockerfile.
Adds use of entrypoint script in LWUI Dockerfile

Change-Id: Iab709bd534291083d4890dd33e9f3c490d11cea1
Signed-off-by: default avatarBenjamin Diaz <bdiaz@whitestack.com>
parent 8e003844
No related branches found
No related tags found
Loading
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
......
......@@ -174,5 +174,7 @@ services:
OSM_SERVER: nbi
#depends_on:
# - nbi
env_file:
- ./lwui.env
ports:
- "${OSM_UI_PORTS:-80:80}"
......@@ -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"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment