commit | 50837436c50b9e85744da515fdf836d7b0ff70b4 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Sat Feb 06 12:24:05 2021 -0600 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Feb 11 07:54:54 2021 -0600 |
tree | 2c18ab71c252261ba700254ae5c5d622009effc1 | |
parent | b16f3e202f7cfd3fc7ed21248f21323b69399288 [diff] |
build-unit-test-docker: invalidate base image weekly Docker will cache an image built with the exact same commands, so we only get latest Ubuntu packages rarely. Add a date-based echo command into the early stages of the base image build so that we regularly get updates to all the packages in the base image. This invalidation, via echo, is only performed when running under a Jenkins-like context. The purpose of this distinction is so that we are more likely to cache failures induced by an underlying OS update in CI, but when developers run this script locally they rarely see an invalidation that is not due to a code package update. Add an environment variable option "FORCE_DOCKER_BUILD" which can be set by developers to bypass the Docker cache and force all images to be rebuilt, just in case they really want to do that sort of thing. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iec92ebada513975d0806099083384dfca623f144
Build script for CI jobs in Jenkins.