Is there a time limit on Fly builder run times?

I have an image that I need to re-build infrequently. I’ve set it up as a Fly app, though it will most be used as a Docker container inside my CircleCI config, for test automation purposes. I plan to pull it into CircleCI from Fly when I need to run these tests.

Since the image is in Fly it makes sense for Fly to do the build too. However it is quite a slow image to build; I pull in a lot of data from the web, and the source of that data seems to be pretty sluggish. I seem to recall it took an hour last time. Are there any Docker build timeouts I should be aware of?

I tried remote-only with a long build and it timed out after 10-20minutes (context deadline error).

I’m using local-only to build large images and the recent registry update re-enforced the expiry time of the temporary token that is generated via fly deploy….
You’ll eventually hit an “App not found” error b/c of the expired token.

The work around is to set your FLY_API_TOKEN or if you’re building images yourself, use docker login … –password-stdin to pass in the auth token which won’t expire after 5 minutes.

1 Like

Thanks @khuezy, great info. I wonder if I might just build the image locally, and push it to the Fly registry on an ad hoc basis.

I should probably get to the bottom of why it’s is so slow to build too…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.