Test optimizing skopeo blob storage
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
504764af10
commit
e17cd1b633
@ -4,8 +4,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
loop:
|
loop:
|
||||||
- /opt/metacluster/helm-charts
|
- /opt/metacluster/helm-charts
|
||||||
- /opt/metacluster/container-images
|
- /opt/metacluster/container-images/shared
|
||||||
|
|
||||||
|
|
||||||
- name: Add helm repositories
|
- name: Add helm repositories
|
||||||
kubernetes.core.helm_repository:
|
kubernetes.core.helm_repository:
|
||||||
@ -45,8 +44,10 @@
|
|||||||
- name: Pull and store containerimages
|
- name: Pull and store containerimages
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: >-
|
cmd: >-
|
||||||
rm -f {{ ( item | regex_findall('[^/:]+'))[-2] }}.tar; \
|
|
||||||
skopeo copy \
|
skopeo copy \
|
||||||
|
--retry-times 5 \
|
||||||
|
--dest-compress \
|
||||||
|
--dest-shared-blob-dir /opt/metacluster/container-images/shared \
|
||||||
docker://{{ item }} \
|
docker://{{ item }} \
|
||||||
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||||
chdir: /opt/metacluster/container-images
|
chdir: /opt/metacluster/container-images
|
||||||
@ -55,9 +56,9 @@
|
|||||||
retries: 5
|
retries: 5
|
||||||
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}"
|
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}"
|
||||||
|
|
||||||
- name: Compress tarballs
|
#- name: Compress tarballs
|
||||||
community.general.archive:
|
# community.general.archive:
|
||||||
dest: /opt/metacluster/container-images/image-tarballs.tgz
|
# dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||||
path: /opt/metacluster/container-images/*
|
# path: /opt/metacluster/container-images/*
|
||||||
format: gz
|
# format: gz
|
||||||
remove: yes
|
# remove: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user