-
Notifications
You must be signed in to change notification settings - Fork 8
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
Docker build fails on linux due to dockerignore and git ls-files conflict #2632
Comments
Want to just send a PR? |
Although, this seems to work fine in CI: https://github.com/TBD54566975/ftl/actions/runs/10736216723/job/29775141104 |
Happy to, just ran out of time tonight and didn't want to forget.
…On Sat, Sep 7, 2024, 12:46 a.m. Alec Thomas ***@***.***> wrote:
Want to just send a PR?
—
Reply to this email directly, view it on GitHub
<#2632 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIKXNFV4KELQ33P5HYMGPTZVKALJAVCNFSM6AAAAABNZVLZQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGA2DANBXGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yea, that's the thing I couldn't reconcile either. I imagine it's something in my env, but conceptually I think something is off. The touch should create the file if it doesn't exist, but i still think that's technically incorrect, since the build wanted to ignore those files. |
So apparently I wasn't using docker's BuildKit component (on my Arch Linux setup) to build, which led to bizzare issues. Closing since it works after all. |
Docker image builds are broken on Linux due to the inclusion of
/**/.idea
in .dockerignore. Docker build will not copy the .idea directory, and the following step fails during build. Not sure why this doesn't fail on MacOS.https://github.com/TBD54566975/ftl/blob/14f4a371ad8011284d1e4031d734badd9176f23d/Dockerfile.controller#L24
Reproduce
just build-docker controller
on a linux system.Tested that this is the issue by commenting out .idea in .dockerignore.
Suggested fix
Omit files in .dockignore when performing the timestamp reset step above.
The text was updated successfully, but these errors were encountered: