Skip to content

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

Merged
bpmct merged 13 commits into
coder:mainfrom
matifali:fly-docker-image-example
Mar 17, 2023
Merged

bpmct merged 13 commits into
coder:mainfrom
matifali:fly-docker-image-example

Conversation

@matifali

@matifali matifali commented Mar 9, 2023 •

Copy link
Copy Markdown
Contributor

This example provides a docker image-based workspace on fly.io using the code-server docker image.

  • Create template
  • Mount fly_volume
  • Set a pretty hostname
  • Add icons
  • Use rich-params
  • Use managed variables for fly_org
  • Use count for fly_machine
  • Test template on non fly coder deployment
    if we need a wireguard tunnel (Not needed) Only requirement is to set FLY_AUTH_TOKEN env variable on coder deployment.
  • Add Readme

Partially resolves #6446
This is the template part; provisioning Coder on fly.io will come as a separate blog post or may be in docs somewhere. Opinion is welcomed.

@matifali matifali changed the title docs: add a fly.io template to provision a docker image on fly.io docs: add a fly.io template to provision docker image based workspaces Mar 9, 2023
@matifali matifali changed the title docs: add a fly.io template to provision docker image based workspaces docs: add template to provision docker image based workspaces on fly.io Mar 9, 2023
fix: `fly_volume` does not allow using - in the name.
strangely `fly_volume` does not allow `-` and `fly_app` does not allow `_`.
@matifali

Copy link
Copy Markdown
Contributor Author

cc: @bpmct

@bpmct
bpmct self-requested a review March 14, 2023 14:38
@matifali

Copy link
Copy Markdown
Contributor Author

Have you tested it?
Can you please test by pushing to a coder deployment.?
@bpmct

@bpmct

bpmct commented Mar 15, 2023 •

Copy link
Copy Markdown
Member

@matifali I pushed those changes during testing. I may push more then will approve, will want you to check before, of course, but figured that would be easier than suggestions.

@bpmct bpmct left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, just added some metadata. @BrunoQuaresma - what would it take to add this as a starter template?

EDIT: nvm, found it. Is there anything else I need to do?

@bpmct
bpmct merged commit e6d52b0 into coder:main Mar 17, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 17, 2023
@matifali
matifali deleted the fly-docker-image-example branch March 18, 2023 16:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coder with Fly.io

2 participants