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
Data Flow
Data Enrichment
wks
Commits
eecdd542
Commit
eecdd542
authored
Aug 12, 2021
by
Vladislav Shishko (EPAM)
Committed by
Oleksandr Kosse (EPAM)
Aug 12, 2021
Browse files
(GONRG-2758) containerize wks bootstrap step
parent
7a353fd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
devops/gcp/Dockerfile
0 → 100644
View file @
eecdd542
FROM
google/cloud-sdk:slim
COPY
./devops/gcp/bootstrap.sh /opt
COPY
./deployments /opt/
RUN
pip3
install
-r
/opt/scripts/gcp/requirements.txt
RUN
chmod
775 /opt/bootstrap.sh
CMD
["/bin/bash", "-c", "source /opt/bootstrap.sh"]
devops/gcp/bootstrap.sh
0 → 100644
View file @
eecdd542
#!/bin/bash
set
-ex
python3 /opt/scripts/gcp/deploy_mappings.py
python3 /opt/scripts/gcp/deploy_mapping_info_records.py
devops/gcp/bootstrap.yml
View file @
eecdd542
...
...
@@ -25,3 +25,22 @@ osdu-gcp-test:
only
:
variables
:
-
$OSDU_GCP == 'true'
osdu-gcp-containerize-bootstrap-gitlab
:
stage
:
containerize
image
:
docker:19.03.15
tags
:
[
"
osdu-medium"
]
services
:
-
docker:20.10.7-dind
script
:
-
export EXTRA_DOCKER_TAG=""; if [ "$CI_COMMIT_TAG" != "" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap:$CI_COMMIT_TAG" ; elif [ "$CI_COMMIT_REF_NAME" = "master" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap:latest" ; fi
-
docker build -t $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap:$CI_COMMIT_SHORT_SHA $EXTRA_DOCKER_TAG --file devops/$OSDU_GCP_VENDOR/Dockerfile .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap
only
:
refs
:
-
master
-
/.*bootstrap.*/
-
tags
variables
:
-
$OSDU_GCP == 'true'
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