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
|
||||
loop:
|
||||
- /opt/metacluster/helm-charts
|
||||
- /opt/metacluster/container-images
|
||||
|
||||
- /opt/metacluster/container-images/shared
|
||||
|
||||
- name: Add helm repositories
|
||||
kubernetes.core.helm_repository:
|
||||
@ -45,8 +44,10 @@
|
||||
- name: Pull and store containerimages
|
||||
ansible.builtin.command:
|
||||
cmd: >-
|
||||
rm -f {{ ( item | regex_findall('[^/:]+'))[-2] }}.tar; \
|
||||
skopeo copy \
|
||||
--retry-times 5 \
|
||||
--dest-compress \
|
||||
--dest-shared-blob-dir /opt/metacluster/container-images/shared \
|
||||
docker://{{ item }} \
|
||||
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||
chdir: /opt/metacluster/container-images
|
||||
@ -55,9 +56,9 @@
|
||||
retries: 5
|
||||
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}"
|
||||
|
||||
- name: Compress tarballs
|
||||
community.general.archive:
|
||||
dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||
path: /opt/metacluster/container-images/*
|
||||
format: gz
|
||||
remove: yes
|
||||
#- name: Compress tarballs
|
||||
# community.general.archive:
|
||||
# dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||
# path: /opt/metacluster/container-images/*
|
||||
# format: gz
|
||||
# remove: yes
|
||||
|
Loading…
Reference in New Issue
Block a user