blob: 0364dc407c96660cb7ba25a9bf75f6f249f5abf4 [file] [log] [blame]
lloretgalleg1d2ff512020-08-01 06:05:58 +00001#!/bin/bash
2##
3# Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U.
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15##
16
17# This script is intended for launching RO from a docker container.
18# It waits for mysql server ready, normally running on a separate container, ...
19# then it checks if database is present and creates it if needed.
20# Finally it launches RO server.
21
22EE_PATH=/app/EE
23
24# Install vnf vendor additional required libraries
25echo "Install additional libraries"
26bash ${EE_PATH}/osm_ee/vnf/install.sh
27
28# Start frontend
29echo "Starting frontend server"
30python3 -m osm_ee.frontend_server