-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the Multi stage build deploy commands for Swatch
Revert "Add gradle build to RHTAP pipelines" Commented out unusable commands for docker staging. Refactor docker file for build stage deployment Adjust shell script Add dashes for chown Add new dockerignore condition
- Loading branch information
Showing
14 changed files
with
165 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
# by default ignore everything | ||
** | ||
|
||
**/build | ||
# ignore dockerfiles so subproject can build using cache | ||
**/Dockerfile | ||
**/Dockerfile.jvm | ||
# allow the build libs for spring-boot based contexts | ||
!build/libs | ||
!build/javaagent | ||
# allow the quarkus-app build folder for quarkus based builds | ||
!build/quarkus-app | ||
# ignore bonfire CI working files | ||
.bonfire | ||
.bonfire_venv | ||
.cicd_bootstrap.sh | ||
.cicd_tools_bootstrap.sh | ||
.kube | ||
.docker | ||
artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
FROM registry.access.redhat.com/ubi9/openjdk-17:1.16 | ||
|
||
USER root | ||
WORKDIR /stage | ||
|
||
COPY gradlew . | ||
COPY gradle gradle | ||
COPY build.gradle settings.gradle dependencies.gradle ./ | ||
COPY buildSrc buildSrc | ||
# The commented out commands are used for quarkus offline as we need the subprojects to run at top level | ||
# Have to add too many files to have quarkus offline run | ||
# We can revist once we refactor the codebases a bit | ||
|
||
#COPY swatch-contracts/build.gradle swatch-contracts/build.gradle | ||
#COPY swatch-producer-aws/build.gradle swatch-producer-aws/build.gradle | ||
#COPY clients clients | ||
#COPY clients-core/build.gradle clients-core/build.gradle | ||
#COPY swatch-common-config-workaround/build.gradle swatch-common-config-workaround/build.gradle | ||
#COPY swatch-common-resteasy/build.gradle swatch-common-resteasy/build.gradle | ||
#COPY swatch-product-configuration/build.gradle swatch-product-configuration/build.gradle | ||
#RUN ./gradlew quarkusGoOffline | ||
|
||
COPY . . | ||
RUN ./gradlew assemble -x test | ||
|
||
FROM registry.access.redhat.com/ubi9/openjdk-17-runtime:1.16-1.1693315923 | ||
|
||
COPY build/libs/* /deployments/ | ||
COPY build/javaagent/* /opt/ | ||
COPY --from=0 /stage/build/libs/* /deployments/ | ||
COPY --from=0 /stage/build/javaagent/* /opt/ | ||
ENV JAVA_OPTS_APPEND=-javaagent:/opt/splunk-otel-javaagent.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
* | ||
!build/*-runner | ||
!build/*-runner.jar | ||
!build/lib/* | ||
!build/quarkus-app/* | ||
!build/quarkus-app/* | ||
# ignore bonfire CI working files | ||
.bonfire | ||
.bonfire_venv | ||
.cicd_bootstrap.sh | ||
.cicd_tools_bootstrap.sh | ||
.kube | ||
.docker | ||
artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# by default ignore everything | ||
** | ||
|
||
# allow the build libs for spring-boot based contexts | ||
!build/libs | ||
# allow the quarkus-app build folder for quarkus based builds | ||
!build/quarkus-app | ||
# ignore bonfire CI working files | ||
.bonfire | ||
.bonfire_venv | ||
.cicd_bootstrap.sh | ||
.cicd_tools_bootstrap.sh | ||
.kube | ||
.docker | ||
artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# by default ignore everything | ||
** | ||
|
||
# allow the build libs for spring-boot based contexts | ||
!build/libs | ||
# allow the quarkus-app build folder for quarkus based builds | ||
!build/quarkus-app | ||
# allow the build libs for splunk otel java agent | ||
!build/javaagent | ||
# ignore bonfire CI working files | ||
.bonfire | ||
.bonfire_venv | ||
.cicd_bootstrap.sh | ||
.cicd_tools_bootstrap.sh | ||
.kube | ||
.docker | ||
artifacts |
Oops, something went wrong.