Repository navigation
chore(image): clean up apt state, opt-out env and unused tools - #14
Merged
Merged
Conversation
- The apt step has no cache mount and no keep-cache configuration. It removes the package lists in its layer. apt now keeps /var/lib/apt/extended_states, so it marks the dependencies as automatic and `apt-get autoremove` works. - One ENV block in the last stage stops the telemetry, the update notices and the self-update of the tools for each consumer. - The image has no mise command and no apt bandit package. pre-commit stays. - The python-tools stage removes the venv .lock files that all users can write. - test/manifests.sh fails the CI when the copy loop of the Dockerfile and mise.toml do not name the same commands. The README points to the manifests and does not copy the tool lists. - test/tools.sh checks the state of the image: the apt marks, the opt-out variables, no mise or bandit, and no writable lock file.
- The published devops-cli devcontainer image exports its venv with --no-dev, so the apt bandit of devtools is its only bandit. The apt list keeps bandit, and test/tools.sh runs it again. - The Go toolchain does not read GOTELEMETRY from the environment, and the image has no Go. The ENV block does not set it. - test/tools.sh does not repeat the values of the ENV block.
Owner
Author
|
Proof of the opt-out ENV block. The env value check is not in CI run 44761593265 on 6b5453e ran a
d2a8dc3 removes only |
Copilot downloads no newer version by itself. It still writes one copy of its package for each version to ~/.cache/copilot/pkg (owner decision on #13).
A devops gh call in this clone wrote them; they are not part of the change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clean up the image build.
apt-get update && apt-get upgrade && apt-get install ... && rm -rf /var/lib/apt/lists/*. apt keepsextended_statesand marks the dependencies as automatic.~/.cache/copilot/pkg(owner decision on chore(image): clean up apt state, opt-out env and unused tools #13).misein the image. bandit and pre-commit stay: the devops-cli devcontainer gets bandit only from devtools..lockfiles that all users can write.test/manifests.sh(CI, before the build) fails when the copy loop andmise.tomldo not name the same commands. The README points to the manifests.test/tools.shchecks the apt marks, no mise, and no writable lock file.Closes #13