Skip to content
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

host on fly.io #494

Open
IslamZaoui opened this issue Jun 4, 2024 · 2 comments
Open

host on fly.io #494

IslamZaoui opened this issue Jun 4, 2024 · 2 comments

Comments

@IslamZaoui
Copy link

Is there any way to use this image on fly.io?

@fisher60
Copy link

fisher60 commented Aug 1, 2024

Hello, this is the source code for a docker image. I did a quick search and it appears that fly.io is a host for deploying docker images. Following their docs, you should be able to host this on fly.io.

I see the command should be:
fly launch --image factoriotools/factorio:stable. This would start the hosted image for this repo with the stable version tag. I am unsure what ports/permissions fly.io will allow, so hopefully you can expose the correct ports (sometimes this may cost extra or not be available if you do not have a VPS/server with the full port range available).

@miend
Copy link

miend commented Aug 4, 2024

The tl;dr is "yes".

Quick technical correction -- while fly.io processes docker images for app deployments, they don't actually use docker (or any other container engine) on the backend for running the final product. They extract the filesystem and run it on a tiny Firecracker VM, and you have wide permissions in there.

Ports can be exposed via [[services]] in the fly.toml configuration file for your Fly app.

In this case you'd also need a dedicated IPv4 address because Fly's infra doesn't support UDP over shared IPv4s or IPv6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants