From 971a40cfedd7e68bbd1ba1bc0bfe572cc1df76d7 Mon Sep 17 00:00:00 2001 From: michaelpede Date: Fri, 19 Mar 2021 13:24:53 -0700 Subject: [PATCH] needed to make shell scripts executable dos2unix is your friend. --- Dockerfile | 2 +- build.sh | 8 +++++++- run.sh | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb4a32e..8875db4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM java:8 -#COPY /build/reso.jar +COPY ./temp/spring-server-generated/target/swagger-spring-1.0.0.jar reso.jar ENTRYPOINT ["java","-jar","reso.jar"] \ No newline at end of file diff --git a/build.sh b/build.sh index 169a51d..97153a3 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,9 @@ #!/bin/bash -docker-compose build \ No newline at end of file +unzip temp/resources/spring-server-generated.zip -d temp/spring-server-generated + +mvn -f temp/spring-server-generated compile +mvn -f temp/spring-server-generated package + +docker-compose build +rm -rf temp/spring-server-generated diff --git a/run.sh b/run.sh index 51828fc..be1885e 100644 --- a/run.sh +++ b/run.sh @@ -1,3 +1,3 @@ #!/bin/bash -docker-compose up \ No newline at end of file +docker-compose up