-
Notifications
You must be signed in to change notification settings - Fork 891
add lima template for coder #2452
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
Conversation
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 so awesome! Makes me want to install lima just to try it out. 😆
examples/lima/README.md
Outdated
|
||
# Lima VM Template | ||
|
||
This provides a [Lima](https://github.com/lima-vm/lima) template for Coder. |
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.
Suggestion: We might not want to call this "template" to avoid confusion with actual coder templates (and examples/templates
directory). Maybe "sample" or just remove?
export DEBIAN_FRONTEND=noninteractive | ||
apt-get update -y | ||
apt-get install terraform=1.1.9 | ||
apt-mark hold terraform |
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.
examples/lima/coder.yaml
Outdated
All Done! Your Coder instance is accessible at http://localhost:3000 | ||
|
||
Username: "[email protected]" | ||
Password: `LIMA_INSTANCE=coder lima cat /home/${USER}.linux/.config/coderv2/password` 🤫 |
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.
Password: `LIMA_INSTANCE=coder lima cat /home/${USER}.linux/.config/coderv2/password` 🤫 | |
Password: $(LIMA_INSTANCE=coder lima cat /home/${USER}.linux/.config/coderv2/password) 🤫 |
Minor suggestion, $()
is the preferred form, but I didn't test if it works in this scenario 😅.
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.
Nope, it doesn't execute in the output, it's more of an indication for the user to run it 😅
I'll change that wording a bit so it's clearer!
Co-authored-by: Mathias Fredriksson <[email protected]>
This PR adds a lima template for Coder.
You can now run
limactl start --name=coder ./examples/lima/coder.yaml
and have a "prod-like" Coder instance up and running within a minute or so.