Skip to content

Commit 329ad8a

Browse files
committed
Revert "fix: update container filenames"
This reverts commit 83c022b.
1 parent 83c022b commit 329ad8a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

build.yaml

+7-9
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@
4949
mpi_containers: "{{ (mpi_containers | default([]) + [dict({'os': item.1.os, 'mpi': item.1.mpi})]) | unique }}"
5050
loop: "{{ containers.basic.items() }}"
5151
- name: Try to get MPI containers from registry
52-
vars:
53-
distro: "{{ item.os.distro | regex_replace('_', '/') }}"
5452
shell: |
55-
if [ ! -f {{ original_dir }}/containers/basic/{{ distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif ]; then
53+
if [ ! -f {{ original_dir }}/containers/basic/{{ item.os.distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif ]; then
5654
apptainer pull \
57-
{{ original_dir }}/containers/basic/{{ distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif \
58-
{{ pull.protocol }}://{{ pull.scope }}/{{ distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}
55+
{{ original_dir }}/containers/basic/{{ item.os.distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif \
56+
{{ pull.protocol }}://{{ pull.scope }}/{{ item.os.distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}
5957
fi
6058
loop: "{{ mpi_containers }}"
6159
ignore_errors: yes
@@ -64,17 +62,17 @@
6462
vars:
6563
distro: "{{ item.os.distro | regex_replace('_', '/') }}"
6664
shell: |
67-
if [ ! -f {{ original_dir }}/containers/basic/{{ distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif ]; then
65+
if [ ! -f {{ original_dir }}/containers/basic/{{ item.os.distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif ]; then
6866
apptainer build \
6967
--warn-unused-build-args \
70-
--build-arg OS_DISTRO={{ item.os.distro }} \
68+
--build-arg OS_DISTRO={{ distro }} \
7169
--build-arg OS_VERSION={{ item.os.version }} \
7270
--build-arg MPI_IMPLEMENTATION={{ item.mpi.implementation }} \
7371
--build-arg MPI_VERSION={{ item.mpi.version }} \
74-
{{ original_dir }}/containers/basic/{{ distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif \
72+
{{ original_dir }}/containers/basic/{{ item.os.distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif \
7573
{{ playbook_dir }}/basic/{{ item.mpi.implementation }}.def
7674
else
77-
echo "Container {{ original_dir }}/containers/basic/{{ distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif already exists. Skipping build."
75+
echo "Container {{ original_dir }}/containers/basic/{{ item.os.distro }}-{{ item.os.version }}-{{ item.mpi.implementation }}-{{ item.mpi.version }}.sif already exists. Skipping build."
7876
fi
7977
loop: "{{ mpi_containers }}"
8078
- name: Try to get base containers from registry

0 commit comments

Comments
 (0)