| lloretgalleg | 1d2ff51 | 2020-08-01 06:05:58 +0000 | [diff] [blame] | 1 | #!/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 | |
| 22 | EE_PATH=/app/EE |
| 23 | |
| 24 | # Install vnf vendor additional required libraries |
| 25 | echo "Install additional libraries" |
| 26 | bash ${EE_PATH}/osm_ee/vnf/install.sh |
| 27 | |
| 28 | # Start frontend |
| 29 | echo "Starting frontend server" |
| 30 | python3 -m osm_ee.frontend_server |