Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DataCatalog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
DataCatalog
Commits
438a9faf
Commit
438a9faf
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
automatically deploy testing environment
parent
ad57e494
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#75053
failed
3 years ago
Stage: test
Stage: build
Stage: deploy
Stage: test-deployment
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-10
13 additions, 10 deletions
.gitlab-ci.yml
with
13 additions
and
10 deletions
.gitlab-ci.yml
+
13
−
10
View file @
438a9faf
...
...
@@ -54,6 +54,7 @@ deploy-production:
PRODUCTION_DOMAIN
:
datacatalog.fz-juelich.de
script
:
-
echo "Doing nothing for now. This will become a production deployment."
-
sed -i 's_/app/mnt/data_/app/mnt && mount /dev/vdb1 /app/mnt_g' deploy_scripts/cloudinit.yml
-
pip install python-openstackclient
-
openstack image list
# - openstack server create --flavor s1 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 pipeline-inst
...
...
@@ -82,18 +83,20 @@ deploy-testing:
OS_INTERFACE
:
public
TESTING_URL
:
https://zam10036.zam.kfa-juelich.de/
TESTING_DOMAIN
:
zam10036.zam.kfa-juelich.de
VOLUME_ID
:
07a93071-5be7-4cc0-8ff3-cb34e7ed2b80
FLOATING_IP
:
134.94.199.36
script
:
-
echo "Doing nothing for now. This will become a testing deployment."
-
echo "Starting the testing deployment."
-
sed -i 's_datacatalog.fz_zam10036.zam.kfa_g' deploy_scripts/cloudinit.yml
-
pip install python-openstackclient
-
openstack image list
# - openstack server create --flavor s1 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 pipeline-inst
# - reassign floating ip
# - login on the new instance pipeline-inst
# - sudo docker network create net #net is the docker internal network.. put it in a Variable?
# - sudo docker-compose up -d
# - docker build --no-cache=true --pull -f ./apiserver/Dockerfile -t api-test . #pull from $CI_REGISTRY
# - sudo docker run --name api-test-cloud --network net -e VIRTUAL_HOST="zam10028.zam.kfa-juelich.de" -e LETSENCRYPT_HOST="zam10028.zam.kfa-juelich.de" -d api-test
# - openstack server destroy pipeline-inst #old
-
OLD_ID=`openstack server show testing-deployment -f value -c id`
# TODO create snapshot copy of old instance
-
openstack server remove floating ip $OLD_ID $FLOATING_IP
# NO VOLUME IN TESTING DEPLOYMENT - openstack server remove volume $OLD_ID $VOLUME_ID
-
INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor s2 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data deploy_scripts/cloudinit.yml --security-group ssh --security-group www --security-group https testing-deployment`
-
openstack server add floating ip $INSTANCE_ID $FLOATING_IP
# NO VOLUME IN TESTING DEPLOYMENT - openstack server add volume $INSTANCE_ID $VOLUME_ID
-
openstack server delete $OLD_ID
test-testing
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment