Skip to content
GitLab
Menu
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
193a8afe
Commit
193a8afe
authored
Dec 30, 2020
by
Gitlab Runner
Browse files
Merge branch 'master' of
https://community.opengroup.org/osdu/platform/system/schema-service
parents
5bc9127a
3e0bfe16
Changes
2
Hide whitespace changes
Inline
Side-by-side
provider/schema-gcp/cloudbuild/Dockerfile.cloudbuild
View file @
193a8afe
...
...
@@ -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 @
193a8afe
...
...
@@ -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
.
Attach a 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