-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --no-cache for building base images #141
Conversation
build/build-runtimeimages-bases.sh
Outdated
@@ -85,7 +85,7 @@ for dockerFile in $dockerFiles; do | |||
cd $REPO_DIR | |||
|
|||
echo | |||
docker build -f $dockerFile -t $localImageTagName $labels . | |||
docker build --no-cache -f $dockerFile -t $localImageTagName $labels . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed in our meeting, should we have this behind a flag so that we do it only when required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will like that to be adhoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed the approach now, so only the steps we want to always run won't be cached.
@@ -33,6 +33,10 @@ RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux- | |||
&& tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 \ | |||
&& rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt | |||
|
|||
# This is a way to avoid using caches for the next stages, since we want the remaining steps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
This is causing issues since we were not reinstalling the latest version of tools that go in the image.