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
3e0bfe16
Commit
3e0bfe16
authored
Dec 30, 2020
by
Oleksandr Kosse (EPAM)
Browse files
Merge branch 'OSDU-GCP_parametrize_containerization' into 'master'
OSDU-GCP: parametrize containerization stage See merge request
!65
parents
3174b568
fbaecc36
Pipeline
#20364
failed with stages
in 70 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
provider/schema-gcp/cloudbuild/Dockerfile.cloudbuild
View file @
3e0bfe16
...
...
@@ -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 @
3e0bfe16
...
...
@@ -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