Files
coder/examples/lima
Cian Johnston bbbd5241c3 develop.sh: attempt to create a Docker template automatically (#2627)
This commit makes the following changes:

- Adds two variables docker_host and docker_arch to the example docker-code-server template
- Adds an example params.yaml to docker-code-server and updates the README.md to reference these parameters
- scripts/develop.sh will now attempt to create a template using docker-code-server with the appropriate parameters for the environment
- Updated Lima example to make use of the template parameters for docker-code-server


Additional drive-bys:

- webpack.dev.ts references CODER_HOST and not CODERV2_HOST; updated develop.sh accordingly
- develop.sh should now terminate child processes upon error.
2022-06-27 09:59:08 +01:00
..
2022-06-17 20:12:42 +00:00

name, description, tags
name description tags
Run Coder in Lima Quickly stand up Coder using Lima
local
docker
vm
lima

Run Coder in Lima

This provides a sample 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.

Getting Started

  • Run limactl start --name=coder https://raw.githubusercontent.com/coder/coder/main/examples/lima/coder.yaml
  • You can use the configuration as-is, or edit it to your liking.

This will:

  • Start an Ubuntu 22.04 VM
  • Install Docker and Terraform from the official repos
  • Install Coder using the installation script
  • 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 for creating workspaces

Once this completes, you can visit http://localhost:3000 and start creating workspaces!

Alternatively, enter the VM with limactl shell coder and run coder template init to start creating your own templates!

Further Information