Create packer image CD pipeline
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Bo-Chun Chen added Sprint 22-19 label
added Sprint 22-19 label
- Bo-Chun Chen marked this issue as related to #22 (closed)
marked this issue as related to #22 (closed)
- Author Owner
steps to be done in CD pipeline:
- Get the old instance ID
- Start a new instance with knightly built image
- Disassociate old floating IP from the old knightly instance
- Associate it with the new instance
- Delete the old instance
- Author Owner
I have chosen the following floating IPs for the Knightly instance:
| 138.26.48.47 | OOD Knightly instance | | | ood-knightly 10.250.0.116 | uab-campus | Active | | |--------------|-----------------------|--|--|---------------------------|----------------|--------|--| | 172.20.10.9 | OOD Knightly instance | | | ood-knightly 10.250.0.116 | cheaha-cluster | Active | |
The CD pipeline will first delete the old instance if there's one, so the floating IPs can be associated with the new instance. And then, it will start a new instance with the nightly build image, and attach the floating IPs to it.
The deploy pipeline will only run on scheduled pipelines.
- Author Owner
Now that the CD pipeline is done, we can merge the PR: !10 (merged)
But before we accept it, we need to:
- Change deploy target branch to
main
, currently set tofeat-gitlab-ci
for development. - Setup CICD variables in rc/packer-openstack-hpc-image repo
Edited by Bo-Chun Chen - Change deploy target branch to
- Bo-Chun Chen marked this issue as related to #32
marked this issue as related to #32
- Bo-Chun Chen marked this issue as related to #25 (closed)
marked this issue as related to #25 (closed)
- Author Owner
To build a docker image: https://docs.gitlab.com/ee/user/packages/container_registry/#build-and-push-by-using-gitlab-cicd
- Author Owner
Had been struggled with using cache/artifacts between jobs in the pipeline. After @jpr suggested, merged all the jobs into one to eliminate the need to pass cache/artifacts around, and build a custom docker image to save time on installing packages.
Added the Dockerfile for current pipeline image in repo:
The docker image:
https://gitlab.rc.uab.edu/rc/packer-openstack-hpc-image/container_registry/64
Edited by Bo-Chun Chen - Bo-Chun Chen marked this issue as related to #28 (closed)
marked this issue as related to #28 (closed)
- Bo-Chun Chen marked this issue as related to #37 (closed)
marked this issue as related to #37 (closed)
- Bo-Chun Chen marked this issue as related to #38 (closed)
marked this issue as related to #38 (closed)