From 9b7190f8dd9827c391061776358896fb8c43776d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=B6sle?= Date: Tue, 9 Apr 2024 15:31:45 +0200 Subject: [PATCH] feature: add dockerfiles for examples --- .../workflow-build-and-release-services.yml | 13 +++++++------ deployment/examples/embedded-example/Dockerfile | 9 +++++++++ deployment/examples/rest-example/Dockerfile | 9 +++++++++ 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 deployment/examples/embedded-example/Dockerfile create mode 100644 deployment/examples/rest-example/Dockerfile diff --git a/.github/workflows/workflow-build-and-release-services.yml b/.github/workflows/workflow-build-and-release-services.yml index c168e22b5..d1c65f0b2 100644 --- a/.github/workflows/workflow-build-and-release-services.yml +++ b/.github/workflows/workflow-build-and-release-services.yml @@ -84,19 +84,20 @@ jobs: PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }} PGP_PRIVATE_KEY_SECRET: ${{ secrets.PGP_PRIVATE_KEY_SECRET }} - - name: DOCKER / BUILD & PUBLISH / miragon/miranum-camunda7-engine-service + # deployment examples + - name: DOCKER / BUILD & PUBLISH / miragon/miranum-deployment-embedded-example if: inputs.docker-release == true uses: docker/build-push-action@v5 with: - context: ./platform/services/miragon/camunda7-engine-service/. + context: ./deployment/examples/embedded-example/. push: true - tags: miragon/miranum-camunda7-engine-service:${{ env.RELEASE_VERSION }} + tags: miragon/miranum-deployment-embedded-example:${{ env.RELEASE_VERSION }} platforms: linux/amd64, linux/arm64/v8 - - name: DOCKER / BUILD & PUBLISH / miragon/miranum-deployment-service + - name: DOCKER / BUILD & PUBLISH / miragon/miranum-deployment-rest-example if: inputs.docker-release == true uses: docker/build-push-action@v5 with: - context: ./platform/services/deployment-service/. + context: ./deployment/examples/rest-example/. push: true - tags: miragon/miranum-deployment-service:${{ env.RELEASE_VERSION }} + tags: miragon/miranum-deployment-rest-example:${{ env.RELEASE_VERSION }} platforms: linux/amd64, linux/arm64/v8 diff --git a/deployment/examples/embedded-example/Dockerfile b/deployment/examples/embedded-example/Dockerfile new file mode 100644 index 000000000..a03dcfbc1 --- /dev/null +++ b/deployment/examples/embedded-example/Dockerfile @@ -0,0 +1,9 @@ +FROM amazoncorretto:17-alpine + +EXPOSE 8080 + +RUN mkdir /app + +COPY ./target/*.jar /app/spring-boot-application.jar + +CMD ["java","-jar","/app/spring-boot-application.jar"] diff --git a/deployment/examples/rest-example/Dockerfile b/deployment/examples/rest-example/Dockerfile new file mode 100644 index 000000000..a03dcfbc1 --- /dev/null +++ b/deployment/examples/rest-example/Dockerfile @@ -0,0 +1,9 @@ +FROM amazoncorretto:17-alpine + +EXPOSE 8080 + +RUN mkdir /app + +COPY ./target/*.jar /app/spring-boot-application.jar + +CMD ["java","-jar","/app/spring-boot-application.jar"]