I follow the steps in the docs to deploy my first app.
It is a go app based on this doc.
When I run:
β flyctl launch
An existing fly.toml file was found for app drio-fly-test
App is not running, deploy...
==> Building image
Remote builder fly-builder-shy-smoke-5052 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
base: Pulling from paketobuildpacks/builder
Digest: sha256:fa845bc26af36d4b64b43eee7075c7b982462ee043fe64e2928c2905c9940074
Status: Image is up to date for paketobuildpacks/builder:base
base-cnb: Pulling from paketobuildpacks/run
Digest: sha256:ec0263dc98a8c785f4a6750597de8857efd2852fc6544494ff2598426cf7143c
Status: Image is up to date for paketobuildpacks/run:base-cnb
latest: Pulling from paketo-buildpacks/go
Digest: sha256:3c091e92643fe2674aa9b2572983c0e46b47a2aadbf2e0a3bf0891cab3ad55c6
Status: Image is up to date for gcr.io/paketo-buildpacks/go:latest
flyctl gets stucked without making any progress. I donβt see any traffic on my nic. Not sure what may be happening.
I am using:
β flyctl version
flyctl v0.0.450 darwin/arm64 Commit: 51325e4a BuildDate: 2023-01-13T21:54:03Z
After a few minutes the process continues successfully (see below).
I think the issue was that docker could not pull the gcr.io/paketo-buildpacks/go:latest and the timeout was set pretty high. I think I had to wait for 5 minutes or so.
That long pause is when buildpacks is resolving all the steps for each builder. This can take some serious time unfortunately. We suggest folks use a Dockerfile to get faster builds and smaller images.