Skip to content

Container dependencies are sorted before resolving templates

container-image's pre script sorts container dependencies before resolving templates. I believe this is the wrong behavior, since, for example,

dep:
  - a_dependency
  - '[% IF true %]b_dependency[% END %]'

gets translated to

dpkg -s b_dependency 2> /dev/null | grep -q "^Status: install ok installed\$" || DEBIAN_FRONTEND=noninteractive apt-get install -q -y b_dependency
dpkg -s a_dependency 2> /dev/null | grep -q "^Status: install ok installed\$" || DEBIAN_FRONTEND=noninteractive apt-get install -q -y a_dependency

inside the pre script. I bumped into this while trying to template a couple of linux deps in rbm.conf. The result was a mass rebuild of the entire toolchain.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information