Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add a mechanism to transfer Docker images contained inside a K8s cloud server template over to ECR. Once transfered, update the container image url to the ECR version and copy it up to S3.
Comment | File | Size | Author |
---|---|---|---|
#2 | deployment.txt | 340 bytes | baldwinlouie |
#2 | 3090650.patch | 57.21 KB | baldwinlouie |
Comments
Comment #2
baldwinlouie CreditAttribution: baldwinlouie commentedAdded this functionality. The specifics are:
1. Added a Docker module that contains a service to talk with Docker. Note, Docker has to be installed on the same server as Cloud Orchestrator. There is a Docker admin/config/services/cloud/docker/settings page to specify the Docker socket.
2. Add an EcrService to talk with AWS ECR
3. Added code to cron to parse cloud server template yaml file, extract the container image urls, download the images, tag them for ECR, and finally push them up to ECR.
4. The steps in #3 can be fairly intensive. I ended up using batch to run through all the operations.
5. There is a new fieldset in K8sToS3AdminSettings so you can turn on this functionality and specify which AWS region to use for ECR
6. Slightly refactored the code in k8s_to_s3.module since this functionality shares the S3 copying code.
Comment #3
yas@baldwinlouie
Could you please review the patch?
@baldwinlouie
Thank you for adding the great feature. It looks good to me.
@xiaohua-guan
Could you please review the patch?
Comment #4
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@all
Thanks for the great patch! The patch looks OK to me.
Comment #5
yas@xiaohua-guan
Thank you for your review. I'll merge the patch to
8.x-2.x
and close this issue asFixed
.Comment #7
yasComment #8
yas