superfly / fly

Deploy app servers close to your users. Package your app as a Docker image, and launch it in 17 cities with one simple CLI.
https://fly.io
985 stars 48 forks source link

Continuous deployment with CircleCI #285

Open karllhughes opened 4 years ago

karllhughes commented 4 years ago

Here's a tentative outline:

mrkurt commented 4 years ago

CircleCI seems tricky with Docker, the people we know who use it end up doing remote builds with flyctl (unintentionally). This one should show how to do in-Circle Docker builds. Bonus points if it can do Docker layer caching.

You can actually build with Docker and deploy that image with flyctl, if it helps. Basically:

docker build . -t myapp/test:1234
flyctl deploy -i myapp/test:1234
karllhughes commented 4 years ago

@ammezie will be helping out with this post. He'll start by creating a more detailed outline here in the Github issue.

codepope commented 4 years ago

Hi there, I'm just putting together a simple app which you may be able to use (it's an app where you can look up countries, languages and how you say hello in each).

ammezie commented 4 years ago

Hi @karllhughes, here's the outline as requested:

karllhughes commented 4 years ago

@ammezie Just a couple pieces of feedback on your outline:

  1. Make sure you use CircleCI to build the Docker image and then deploy it. See Kurt's comment above and the CircleCI Docker documentation to make sure this is the way you do it. Let us know if you have questions though.
  2. If @codepope's application is done before you start writing, you can use that. Otherwise, you can get started with the Fly demo app used here. We can switch out the app later if need be.

Thanks!

codepope commented 4 years ago

The demo app is done - https://github.com/fly-examples/flygreeting - feedback and PRs welcomed of course.

karllhughes commented 4 years ago

Ah, great, thanks @codepope!

ammezie commented 4 years ago

@karllhughes got it!