aboutsummaryrefslogtreecommitdiffstats
path: root/src/docker/Dockerfile
diff options
context:
space:
mode:
authorKasperki <pawel.kasperkiewicz@nokia.com>2022-01-28 15:17:46 +0100
committerKasperki <pawel.kasperkiewicz@nokia.com>2022-02-03 13:35:54 +0100
commita8e59fe8d77d5df48bcbe3899d3cefbf3f9fcd87 (patch)
treeddeb2a04d1b8313642609e9a7f5952ed87fef53c /src/docker/Dockerfile
parent0dd4b72705f78676314d4451bb1c7f16b077ec97 (diff)
Switch VESCollector to Integration base image(onap/integration-java11:10.0.0)
Change-Id: I0979707461994c1926d3809d6c68005e2e4f2624 Issue-ID: DCAEGEN2-2961 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com>
Diffstat (limited to 'src/docker/Dockerfile')
-rw-r--r--src/docker/Dockerfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/docker/Dockerfile b/src/docker/Dockerfile
new file mode 100644
index 00000000..3e2da432
--- /dev/null
+++ b/src/docker/Dockerfile
@@ -0,0 +1,40 @@
+# ============LICENSE_START=======================================================
+# Copyright (c) 2020-2022 Nokia. All rights reserved.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+FROM nexus3.onap.org:10001/onap/integration-java11:10.0.0
+
+ENV HOSTALIASES /etc/host.aliases
+ARG user=vescollector
+ARG group=vescollector
+WORKDIR /opt/app/VESCollector
+
+ADD ./ ./
+USER root
+
+RUN addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user
+RUN chown -R vescollector:vescollector /opt/app
+RUN apk update && apk add procps && apk add less && apk add vim && apk add curl && apk add bash
+RUN mkdir /opt/app/VESCollector/logs
+RUN chown -R vescollector:vescollector /opt/app/VESCollector/logs
+RUN chown -R vescollector:vescollector /opt/app/VESCollector/etc
+RUN chmod +x bin/*.sh
+USER $user
+
+EXPOSE 8080 8443
+
+ENTRYPOINT bin/docker-entry.sh