Skip to content

Conversation

@gerhard
Copy link
Member

@gerhard gerhard commented Jun 13, 2022

Before this, GitHub Actions was using a Docker Engine running on a bare metal host. We were connecting to it via Tailscale. This was OK as a stop-gap, but we ran into issues with:

  • TAILSCALE_AUTHKEY max 90d TTL - Generate auth key +Reusable +Ephemeral
  • dagger-buildkitd default container getting upgraded by a newer dagger CLI (I was using the same Docker Engine)
  • changelog_test_postgres container failing to TCP port (another PostgreSQL was already running)

This introduces a dedicated Docker Engine running on Fly.io. It has a cache that persists between runs & is faster than the default GitHub Actions free runner (4 CPUs vs 2 CPUs). The PR includes:

  • Upgrade fly cli to latest in 2022.fly
  • Deploy Docker Engine on Fly.io
  • Use Fly.io Docker Engine in prod_image workflow
  • Only deploy the master branch

I am looking forward to use Fly machines and spin up this Docker Engine... on the fly 🛫

https://fly.io/docs/reference/machines/


Thanks @mrkurt for https://github.com/fly-apps/docker-daemon - it really helped to get started with this!

For the full story, tune into 🎧 shipit.show/60

gerhard added 4 commits June 13, 2022 22:50
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
Starting point: https://github.com/fly-apps/docker-daemon

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
@gerhard gerhard merged commit 1be0267 into master Jun 13, 2022
@gerhard gerhard deleted the fly.io-docker-engine branch June 13, 2022 22:05
@gerhard
Copy link
Member Author

gerhard commented Jul 11, 2022

FTR re Tailscale key expiry: https://changelog.com/news/kaizen-postmigration-cleanup-8lOL#comment-j2g

Thanks @elreydetoda!

@elreydetoda
Copy link

FTR re Tailscale key expiry: https://changelog.com/news/kaizen-postmigration-cleanup-8lOL#comment-j2g

Thanks @elreydetoda!

Anytime @gerhard! 😁

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

Successfully merging this pull request may close these issues.

3 participants