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
Deployment and Operations
Backup Service
Commits
8ebf2409
Commit
8ebf2409
authored
Jan 21, 2021
by
Mykola Zamkovyi (EPAM)
Browse files
GONRG-1583
parent
ab28d72d
Changes
2
Hide whitespace changes
Inline
Side-by-side
provider/backup-gcp/cloudbuild/Dockerfile.cloudbuild
0 → 100644
View file @
8ebf2409
# Use the official AdoptOpenJDK for a base image.
# https://hub.docker.com/_/openjdk
FROM openjdk:8-slim
WORKDIR /app
ARG PROVIDER_NAME
ENV PROVIDER_NAME $PROVIDER_NAME
ARG PORT
ENV PORT $PORT
# Copy the jar to the production image from the builder stage.
COPY provider/backup-${PROVIDER_NAME}/target/backup-${PROVIDER_NAME}-*.jar backup-${PROVIDER_NAME}.jar
# Run the web service on container startup.
CMD java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -jar /app/backup-${PROVIDER_NAME}.jar
provider/backup-gcp/cloudbuild/cloudbuild.yaml
0 → 100644
View file @
8ebf2409
# Copyright 2020 Google LLC
# Copyright 2017-2019, Schlumberger
# Copyright 2020 EPAM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
steps
:
-
name
:
'
gcr.io/cloud-builders/docker'
args
:
[
'
build'
,
'
--build-arg'
,
'
PROVIDER_NAME=${_PROVIDER_NAME}'
,
'
--build-arg'
,
'
PORT=${_PORT}'
,
'
-t'
,
'
gcr.io/$PROJECT_ID/backup/backup-${_PROVIDER_NAME}:${_SHORT_SHA}'
,
'
-t'
,
'
gcr.io/$PROJECT_ID/backup/backup-${_PROVIDER_NAME}:latest'
,
'
-f'
,
'
cicd-config/cloudbuild/Dockerfile.cloudbuild.backup'
,
'
.'
]
images
:
-
'
gcr.io/$PROJECT_ID/backup/backup-${_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