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

Dockerfile optimizations #34

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Dockerfile optimizations #34

merged 2 commits into from
Nov 15, 2024

Conversation

vicnett
Copy link
Owner

@vicnett vicnett commented Nov 15, 2024

What

  • Move Ansible installation into its own earlier Dockerfile layer
  • Add Zsh and Neovim plugin initialization commands to Dockerfile

Why

Ansible is super slow to install, and invalidating the cache on that step every time manjaro_packages is changed is a little annoying. Plus, there may be other steps added to that target later which would make the issue worse. Putting it into its own layer that runs as the first step of the install target means it should only miss cache (almost) only if the base Arch image has changed.

When doing interactive tests, having to watch the Zsh and Neovim plugins get installed is annoying. Plus, I'd like these to be part of the build since that's all the CI I'm currently running.

@vicnett vicnett merged commit 7a39a22 into main Nov 15, 2024
1 check passed
@vicnett vicnett deleted the optimize-dockerfile branch November 15, 2024 22:04
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.

1 participant