summaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/deployment/docker
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-09-08 17:45:40 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-09-10 11:15:09 +0530
commitbecfa217fe08c8c219d9e091dee48611d47d3ee0 (patch)
treef5cdbf51223662b847cc13720a83ac53fc1fcc23 /vnfmarket-be/deployment/docker
parent3f3709eacdcc5a64931e8050290643e064fab752 (diff)
VTP: Enable VTP in docker as a service
Issue-ID: VNFSDK-304 Change-Id: If57a8bd5917383ec6e7a65346be01165e603a1a7 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'vnfmarket-be/deployment/docker')
-rw-r--r--vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile18
-rwxr-xr-xvnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-run.sh4
2 files changed, 16 insertions, 6 deletions
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
index 270b1217..7ee00b33 100644
--- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
@@ -8,8 +8,8 @@
FROM ubuntu:16.04
#RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
-RUN apt-get install -y
-RUN apt-get update -y
+RUN apt-get install -y
+RUN apt-get update --fix-missing -y
RUN apt-get install wget -y
WORKDIR /service
@@ -23,7 +23,7 @@ ENV JAVA_VERSION_MAJOR=8 \
RUN DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-software-properties
-RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
+RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common sudo
RUN add-apt-repository ppa:openjdk-r/ppa -y && \
@@ -85,7 +85,7 @@ WORKDIR /service
RUN mkdir -p /etc/nginx/ssl
COPY nginx.conf /etc/nginx/nginx.conf
COPY certgen.sh /service
-RUN chmod +x /service/certgen.sh
+RUN chmod +x /service/certgen.sh
RUN /service/certgen.sh
@@ -102,12 +102,13 @@ COPY instance-init.sh .
COPY instance-run.sh .
COPY instance-workaround.sh .
COPY docker-entrypoint.sh .
-
+COPY install-vtp.sh .
+COPY vtp-tc.sh .
# Set up microservice
ADD ./STAGE /service
-RUN apt-get install -y g++ make && curl -sL https://rpm.nodesource.com/setup_6.x
+RUN apt-get install -y g++ make && curl -sL https://rpm.nodesource.com/setup_6.x
RUN apt-get install -y nodejs
RUN apt-get install -y npm
RUN apt-get -qq update && apt-get -qq -y install bzip2
@@ -115,6 +116,11 @@ RUN chmod +x /service/bin/*.sh
RUN service nginx start &
RUN cd /service/webapps/onapui/vnfmarket && npm install phantomjs-prebuilt@2.1.14 --ignore-scripts && npm install
+#VTP setup
+RUN chmod a+x /service/install-vtp.sh
+RUN chmod a+x /service/vtp-tc.sh
+RUN /service/install-vtp.sh
+EXPOSE 50051
ENTRYPOINT /service/docker-entrypoint.sh
RUN chmod a+x /service/docker-entrypoint.sh
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-run.sh b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-run.sh
index 50327bc2..5e3f9bda 100755
--- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-run.sh
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-run.sh
@@ -15,6 +15,9 @@
# limitations under the License.
#
+#Start VTP service
+service vtp-tc start
+
# Start tomcat service
./bin/start.sh
@@ -28,3 +31,4 @@ done
echo /service/logs/*
tail -F /service/logs/*
+