Skip to content

Add --no-cache for all apk commands #330

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

Merged
merged 2 commits into from
Aug 17, 2018
Merged

Add --no-cache for all apk commands #330

merged 2 commits into from
Aug 17, 2018

Conversation

nvllsvm
Copy link
Contributor

@nvllsvm nvllsvm commented Aug 14, 2018

The Alpine images contain unnecessary repository indexes in /var/cache/apk. The following changes were made to ensure they are not saved.

  • ensure --no-cache to all apk add commands
  • add --no-cache to all apk del commands. Even though it removes packages, running it will ensure that an index is present locally.

@tianon
Copy link
Member

tianon commented Aug 15, 2018

This is actually a (recent) bug, and they're planning to fix it: https://bugs.alpinelinux.org/issues/9063

(https://git.alpinelinux.org/cgit/apk-tools/commit/?id=e1a05c74cb8ae6ab41ee960343cc64a0a9af95a5)

https://git.alpinelinux.org/cgit/apk-tools/commit/?id=8a28c6d0d4f81406c67e76b2bcdbe491aa734717 appears to be the commit which introduced this "autoupdate" behavior.

@nvllsvm
Copy link
Contributor Author

nvllsvm commented Aug 15, 2018

@tianon - Updated PR to only address the missing for apk add commands.

@yosifkit
Copy link
Member

Added commit running update.sh so that travis will run with the changes.
While this only matters for alpine 3.8, there is no material change on older versions, so LGTM.

@yosifkit yosifkit merged commit f4e3623 into docker-library:master Aug 17, 2018
tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 21, 2018
- `drupal`: 8.6.0-rc1
- `ghost`: ghost-cli 1.9.1
- `memcached`: Alpine 3.8 (docker-library/memcached#40)
- `mongo`: 3.6.7, `dbPath` fixes (docker-library/mongo#294)
- `openjdk`: 11-ea+27 (Debian)
- `percona`: 5.5.61, 5.6.41
- `php`: 7.1.21, Alpine 3.8 (docker-library/php#702, docker-library/php#688), 7.3.0beta2 (docker-library/php#677), 7.2.9
- `postgres`: fix `HOME` (docker-library/postgres#481)
- `python`: `apk add --no-cache` to combat new `apk` behavior (docker-library/python#330)
- `ruby`: bundler 1.16.4
- `tomcat`: 8.5.33, 9.0.11
JayH5 added a commit to praekeltfoundation/docker-alpine-python that referenced this pull request Oct 25, 2018
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.

4 participants