X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FRO%2FDockerfile;h=baec51e65a283f1d1e3a60fff1c5a18632915b14;hb=d3dd343665385d6f6ce7d0b37950857b87b5bc09;hp=0607d91e01ec621700cafc5304e93ab51474cb47;hpb=851aac2e9fea85ceb75e58d1557e931f55197237;p=osm%2Fdevops.git diff --git a/docker/RO/Dockerfile b/docker/RO/Dockerfile index 0607d91e..baec51e6 100644 --- a/docker/RO/Dockerfile +++ b/docker/RO/Dockerfile @@ -1,9 +1,29 @@ +## +# Copyright 2019 ETSI +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +## + +######################################################################## + from ubuntu:xenial MAINTAINER Gennadiy Dubina ; Alfonso Tierno RUN apt-get update && apt-get -y install curl software-properties-common git -RUN apt-get update && apt-get install -y python-setuptools python-wheel mysql-client python-bitarray +RUN DEBIAN_FRONTEND=noninteractive add-apt-repository -y cloud-archive:queens +RUN apt-get update && apt-get install -y python-setuptools python-wheel mysql-client python-bitarray python-pip +RUN DEBIAN_FRONTEND=noninteractive pip2 install -U pip && python -m pip install pyangbind ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian ARG RELEASE=ReleaseFOUR-daily @@ -18,11 +38,8 @@ ARG IM_VERSION RUN apt-get update && apt-get install -y python-osm-ro${RO_VERSION} python-osm-im${IM_VERSION} -RUN mkdir -p /bin/RO -COPY scripts/ /bin/RO - -VOLUME /opt/openmano/logs +VOLUME /var/log/osm EXPOSE 9090 @@ -47,6 +64,7 @@ ENV RO_DB_OVIM_PORT=3306 ENV RO_DB_NAME=mano_db ENV RO_DB_OVIM_NAME=mano_vim_db -HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ +HEALTHCHECK --start-period=130s --interval=10s --timeout=5s --retries=12 \ CMD curl --silent --fail localhost:9090/openmano/tenants || exit 1 -CMD /bin/RO/start.sh +CMD /usr/bin/RO-start.sh +