Rearrange docker build script.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Mon, 18 Oct 2021 12:33:06 +0000 (15:33 +0300)
committerAndrey Alekseenko <al42and@gmail.com>
Thu, 21 Oct 2021 10:06:42 +0000 (10:06 +0000)
commit8829e45fe741c094eb9590069fe087e9fe024efc
tree4fd1ba43ec23ea85f8abca91a190784051bd65c9
parent61c5c9ec702c3e6c1f00260c3891a0466f3e19eb
Rearrange docker build script.

Disambiguate build layer dependencies, now that Docker build
automatically parallelizes multi-stage builds when possible. This change
clarifies which layers are reused and which are unique. This minimizes
overall CPU time for fresh builds, but more importantly ensures that
components from separates stages are not subject to race conditions in
the resolution of dependencies that are satisfied through package
managers. It should also improve maintainability by reducing duplicated
logic.
admin/containers/scripted_gmx_docker_builds.py