Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Schema
Commits
fbaecc36
Commit
fbaecc36
authored
Dec 30, 2020
by
Aliaksandr Ramanovich (EPAM)
Committed by
Oleksandr Kosse (EPAM)
Dec 30, 2020
Browse files
OSDU-GCP: parametrize containerization stage
parent
3174b568
Changes
2
Hide whitespace changes
Inline
Side-by-side
provider/schema-gcp/cloudbuild/Dockerfile.cloudbuild
View file @
fbaecc36
...
...
@@ -2,11 +2,9 @@
# https://hub.docker.com/_/openjdk
FROM openjdk:8-slim
WORKDIR /app
ARG P
ORT
ENV P
ORT $PORT
ARG P
ROVIDER_NAME
ENV P
ROVIDER_NAME $PROVIDER_NAME
# Copy the jar to the production image from the builder stage.
COPY provider/schema-
gcp
/target/os-schema-
gcp
-*-spring-boot.jar schema.jar
COPY provider/schema-
${PROVIDER_NAME}
/target/os-schema-
${PROVIDER_NAME}
-*-spring-boot.jar schema.jar
# Run the web service on container startup.
CMD java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -jar /app/schema.jar
provider/schema-gcp/cloudbuild/cloudbuild.yaml
View file @
fbaecc36
...
...
@@ -18,13 +18,14 @@ steps:
-
name
:
'
gcr.io/cloud-builders/docker'
args
:
[
'
build'
,
'
--build-arg'
,
'
PROVIDER_NAME=${_PROVIDER_NAME}'
,
'
--build-arg'
,
'
PORT=${_PORT}'
,
'
-t'
,
'
gcr.io/$PROJECT_ID/
os-schema/schema-gcp
:${_SHORT_SHA}'
,
'
-t'
,
'
gcr.io/$PROJECT_ID/
os-schema/schema-gcp
:latest'
,
'
-f'
,
'
provider/
schema-gcp
/cloudbuild/Dockerfile.cloudbuild'
,
'
-t'
,
'
gcr.io/$PROJECT_ID/
${_APPLICATION_NAME}/${_GCP_SERVICE}-${_PROVIDER_NAME}
:${_SHORT_SHA}'
,
'
-t'
,
'
gcr.io/$PROJECT_ID/
${_APPLICATION_NAME}/${_GCP_SERVICE}-${_PROVIDER_NAME}
:latest'
,
'
-f'
,
'
provider/
${_GCP_SERVICE}-${_PROVIDER_NAME}
/cloudbuild/Dockerfile.cloudbuild'
,
'
.'
]
images
:
-
'
gcr.io/$PROJECT_ID/
os-schema/schema-gcp
'
-
'
gcr.io/$PROJECT_ID/
${_APPLICATION_NAME}/${_GCP_SERVICE}-${_PROVIDER_NAME}
'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment