Skip to content
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

Merged
merged 2 commits into from
May 15, 2019
Merged

Conversation

gpcastro
Copy link
Member

This is causing issues since we were not reinstalling the latest version of tools that go in the image.

@gpcastro gpcastro requested a review from a team as a code owner May 15, 2019 17:30
@@ -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 .
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@gpcastro gpcastro merged commit 7aa3f8e into master May 15, 2019
@gpcastro gpcastro deleted the gpcastro/nocachebaseimage branch May 15, 2019 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants