summaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/docker-files/Dockerfile12
-rw-r--r--src/main/docker/docker-files/startup.sh21
2 files changed, 33 insertions, 0 deletions
diff --git a/src/main/docker/docker-files/Dockerfile b/src/main/docker/docker-files/Dockerfile
new file mode 100644
index 0000000..08b55a3
--- /dev/null
+++ b/src/main/docker/docker-files/Dockerfile
@@ -0,0 +1,12 @@
+FROM onap/integration-java11:10.0.0
+
+WORKDIR /home/onap
+
+USER onap
+
+COPY --chown=onap:onap simulator-0.0.1-SNAPSHOT.jar /home/onap/simulator-0.0.1-SNAPSHOT.jar
+COPY --chown=onap:onap startup.sh /home/onap/startup.sh
+
+RUN chmod 700 /home/onap/startup.sh
+
+ENTRYPOINT [ "sh", "-c", "/home/onap/startup.sh"]
diff --git a/src/main/docker/docker-files/startup.sh b/src/main/docker/docker-files/startup.sh
new file mode 100644
index 0000000..63b6f03
--- /dev/null
+++ b/src/main/docker/docker-files/startup.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# ============LICENSE_START=======================================================
+# Copyright (C) 2022 AT&T Intellectual Property.
+# ================================================================================
+# 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=========================================================
+
+java -jar /home/onap/simulator-0.0.1-SNAPSHOT.jar --spring.config.location=/home/onap/app/application.properties