mirror of https://github.com/coder/coder.git
63a9e34381 | ||
---|---|---|
.. | ||
README.md | ||
main.tf |
README.md
name | description | tags | icon | ||
---|---|---|---|---|---|
Develop on a Fly.io container | Run workspaces as Firecracker VMs on Fly.io |
|
/icon/fly.io.svg |
Coder Fly.io Template
This template provisions a code-server instance on fly.io using the codercom/code-server image.
Prerequisites
Getting started
- Run
coder templates init
and select this template. Follow the instructions that appear. - cd into the directory that was created. (e.g.
cd fly-docker-image
) - Create the new template by running the following command from the
fly-docker-image
directory:
coder templates create fly-docker-image \
--variable fly_api_token=$(flyctl auth token) \
--variable fly_org=personal
If the Coder server is also running as a fly.io app, then instead of setting variable
fly_api_token
you can also set a fly.io secret with the nameFLY_API_TOKEN
flyctl secrets set FLY_API_TOKEN=$(flyctl auth token) --app <your-coder-app-name>
Read our blog post to learn more about how to deploy Coder on fly.io.
- Navigate to the Coder dashboard and create a new workspace using the template.
This is all. You should now have a code-server instance running on fly.io.