tripleo-ansible/tripleo_ansible/roles/tripleo_container_image_build
Miguel Garcia 0ec37df1e4 Container build: define ARGs after FROM line
According to the Dockerfile reference[1], ARG instructions before the
FROM line are a special case: variables defined in this way are only
available in the FROM line and not during the rest of the build.

In order for defined ARGs to be available during image build time we
must run these after the FROM line.

[1] https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/858864
Signed-off-by: Miguel Garcia <mgarciac@redhat.com>
Change-Id: I8086b7820ff2d124baacbe8e947aba970996b907
2022-09-22 10:46:03 +02:00
..
defaults Ensure we use stream8 images instead of old centos8 ones. 2021-08-02 07:55:13 +00:00
meta fix galaxy meta requirements 2021-09-21 08:53:45 -05:00
molecule/default Gather some environment data 2022-06-30 09:11:25 +00:00
tasks Add debug output when rendering container files 2020-05-12 13:34:00 +00:00
templates Container build: define ARGs after FROM line 2022-09-22 10:46:03 +02:00