From a795aedc51e4cca6ff6d36eac12ab1e6af7b93ab Mon Sep 17 00:00:00 2001 From: xuegao Date: Fri, 4 Nov 2022 09:44:25 +0100 Subject: Dockerizing simulators Fix the bug in Jenkins docker maven stage job. Issue-ID: INT-2162 Signed-off-by: xuegao Change-Id: I7ebd30e2ea854d30e88d6cd45d6de9c145ea204f --- src/main/docker/docker-files/Dockerfile | 4 ++-- src/main/docker/docker-files/startup.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/docker/docker-files/Dockerfile b/src/main/docker/docker-files/Dockerfile index 08b55a3..169f9c0 100644 --- a/src/main/docker/docker-files/Dockerfile +++ b/src/main/docker/docker-files/Dockerfile @@ -4,8 +4,8 @@ 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 +COPY --chown=onap:onap ./simulator-0.0.1*jar /home/onap/simulator-0.0.1.jar +COPY --chown=onap:onap ./startup.sh /home/onap/startup.sh RUN chmod 700 /home/onap/startup.sh diff --git a/src/main/docker/docker-files/startup.sh b/src/main/docker/docker-files/startup.sh index 63b6f03..c287471 100644 --- a/src/main/docker/docker-files/startup.sh +++ b/src/main/docker/docker-files/startup.sh @@ -18,4 +18,4 @@ # 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 +java -jar /home/onap/simulator-0.0.1.jar --spring.config.location=/home/onap/app/application.properties -- cgit 1.2.3-korg