Skip to content

docs: add template to provision docker image based workspaces on fly.io #6526

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 13 commits into from
Mar 17, 2023
Prev Previous commit
Next Next commit
add metadata
  • Loading branch information
bpmct committed Mar 17, 2023
commit 26ce35ff8c34d084b3297825047c3c7c00619c02
15 changes: 12 additions & 3 deletions examples/templates/fly-docker-image/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Coder Docker Image fly.io Template
---
name: Develop on a Fly.io container
description: Run workspaces as Firecracker VMs on Fly.io
tags: [docker, fly.io]
icon: /icon/fly.io.svg
---

# Coder Fly.io Template

This template provisions a [code-server](https://github.com/coder/code-server) instance on [fly.io](https://fly.io) using the [codercom/code-server](https://hub.docker.com/r/codercom/code-server) image.

Expand All @@ -14,10 +21,12 @@ This template provisions a [code-server](https://github.com/coder/code-server) i
3. Create the new template by running the following command from the `fly-docker-image` directory:

```bash
coder templates create fly-docker-image --variable fly_api_token=$(flyctl auth token)
coder templates create fly-docker-image \
--variable fly_api_token=$(flyctl auth token) \
--variable fly_org=personal
```

> If your Coder 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 name `FLY_API_TOKEN`
> 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 name `FLY_API_TOKEN`
>
> ```bash
> flyctl secrets set FLY_API_TOKEN=$(flyctl auth token) --app <your-coder-app-name>
Expand Down
1 change: 1 addition & 0 deletions site/static/icon/fly.io.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.