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
Merged

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

merged 13 commits into from
Mar 17, 2023

Conversation

matifali
Copy link
Member

@matifali matifali commented Mar 9, 2023

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
Member Author

cc: @bpmct

@bpmct bpmct self-requested a review March 14, 2023 14:38
@matifali
Copy link
Member Author

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

@bpmct
Copy link
Member

bpmct commented Mar 15, 2023

@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.

Copy link
Member

@bpmct bpmct left a comment

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