summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMukesh Paliwal <mukesh.paliwal1@huawei.com>2022-01-13 09:01:16 +0530
committerMukesh Paliwal <mukesh.paliwal1@huawei.com>2022-01-15 09:09:31 +0530
commit7a85ea009149edc8aff260d559debbd45af02b03 (patch)
tree41595f65710115cbedf8f450f2bc616b006857cb /src
parent584fb3ef9143e2e241688a32f95b5a9f81e400b3 (diff)
Switch RESTCONF Collector to Integration base image
Issue-ID: DCAEGEN2-2962 Signed-off-by: Mukesh Paliwal <mukesh.paliwal1@huawei.com> Change-Id: I9fda9836e119862f143ea5a649f852cebdfb1be9
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main/docker/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
new file mode 100755
index 0000000..786ef00
--- /dev/null
+++ b/src/main/docker/Dockerfile
@@ -0,0 +1,25 @@
+FROM nexus3.onap.org:10001/onap/integration-java11:10.0.0
+
+ENV HOSTALIASES /etc/host.aliases
+
+ARG user=restconfcollector
+ARG group=restconfcollector
+
+USER root
+WORKDIR /opt/app/restconfcollector
+
+RUN apk --no-cache update && apk --no-cache upgrade && apk add --upgrade procps && apk add --no-cache vim && apk --no-cache add curl && \
+ addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user && \
+ chown -R $user:$group /opt/app/restconfcollector && \
+ chmod -R u+rw /opt/app/restconfcollector
+
+USER $user
+
+COPY --chown=$user:$group /. /opt/app/restconfcollector/
+
+RUN chmod +x bin/docker_entry.sh
+RUN chmod +x bin/restConfCollector.sh
+
+EXPOSE 8080 8687
+
+ENTRYPOINT ["bin/docker_entry.sh"]