Skip to content

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

Merged
merged 6 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
  • Loading branch information
johnstcn and mafredri authored Jun 17, 2022
commit 5782c861a8ee894d23ae0c5d4ad12c8d60097ea5
6 changes: 3 additions & 3 deletions examples/lima/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: Quickly stand up Coder using Lima
tags: [local, docker, vm, lima]
---

# Lima VM Template
# Run Coder in Lima

This provides a [Lima](https://github.com/lima-vm/lima) template for Coder.
This provides a sample [Lima](https://github.com/lima-vm/lima) configuration for Coder.
This lets you quickly test out Coder in a self-contained environment.

> Prerequisite: You must have `lima` installed and available to use this.
Expand All @@ -18,7 +18,7 @@ This lets you quickly test out Coder in a self-contained environment.

This will:
- Start an Ubuntu 22.04 VM
- Install Docker from the official repos
- Install Docker and Terraform from the official repos
- Install Coder using the [installation script](https://coder.com/docs/coder-oss/latest/install#installsh)
- Generates an initial user account `admin@coder.com` with a randomly generated password (stored in the VM under `/home/${USER}.linux/.config/coderv2/password`)
- Initializes a [sample Docker template](https://github.com/coder/coder/tree/main/examples/templates/docker-code-server) for creating workspaces
Expand Down
6 changes: 3 additions & 3 deletions examples/lima/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ probes:
exit 1
fi
hint: |
See "/var/log/cloud-init-output.log". in the guest
See "/var/log/cloud-init-output.log" in the guest.
- description: "coder to be installed"
script: |
#!/bin/bash
Expand All @@ -122,12 +122,12 @@ probes:
exit 1
fi
hint: |
See "/var/log/cloud-init-output.log". in the guest
See "/var/log/cloud-init-output.log" in the guest.
message: |
All Done! Your Coder instance is accessible at http://localhost:3000

Username: "admin@coder.com"
Password: `LIMA_INSTANCE=coder lima cat /home/${USER}.linux/.config/coderv2/password` 🤫
Password: Run `LIMA_INSTANCE=coder lima cat /home/${USER}.linux/.config/coderv2/password` 🤫

Get started creating your own template now:
------
Expand Down