add lima template for coder#2452
Merged
Merged
Conversation
mafredri
approved these changes
Jun 17, 2022
mafredri
left a comment
Member
There was a problem hiding this comment.
This is so awesome! Makes me want to install lima just to try it out. 😆
|
|
||
| # Lima VM Template | ||
|
|
||
| This provides a [Lima](https://github.com/lima-vm/lima) template for Coder. |
Member
There was a problem hiding this comment.
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 |
| 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` 🤫 |
Member
There was a problem hiding this comment.
Suggested change
| 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 😅.
Member
Author
There was a problem hiding this comment.
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!
johnstcn
commented
Jun 17, 2022
johnstcn
commented
Jun 17, 2022
johnstcn
commented
Jun 17, 2022
johnstcn
commented
Jun 17, 2022
Co-authored-by: Mathias Fredriksson <[email protected]>
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.

This PR adds a lima template for Coder.
You can now run
limactl start --name=coder ./examples/lima/coder.yamland have a "prod-like" Coder instance up and running within a minute or so.