Repository navigation
Fix dockerfile - #2288
Fix dockerfile#2288
Conversation
Signed-off-by: CrazyMax <[email protected]>
d1e32a6 to
6b675b4
Compare
marcosnils
left a comment
There was a problem hiding this comment.
LGTM! left a small nit
There was a problem hiding this comment.
Can we ignore the website folder here? it's a big one and we're sending it to the context unnecessarily
There was a problem hiding this comment.
Have to hack around filesystem as it seems we can't inherit from another one so I have created a filesystem to build the docker image named ./. This way it doesn't overlap with the main one called . but that looks hacky to me.
before
11:47AM INF actions.build.docker | completed duration=2m1.1s
after
3:53PM INF actions.build.docker | completed duration=1m45.9s
Would be better if we could specify an id for a filesystem or better inherit from an existing one to override some attributes.
There was a problem hiding this comment.
Would be better if we could specify an id for a filesystem or better inherit from an existing one to override some attributes.
You can use docker.#Copy to create a new FS with the things you want to include or exclude. I think doing a copy vs creating a new FS should be more performant
There was a problem hiding this comment.
You can use
docker.#Copyto create a newFSwith the things you want to include or exclude. I think doing acopyvs creating a new FS should be more performant
iiuc it will build two images? First one that will just create an FS with just a docker.#Copy step and the core.#Dockerfile will use this FS to build its image? That sounds worse no?
Maybe we should discuss and make this change in a follow-up as it seems out of scope with this PR. WDYT?
There was a problem hiding this comment.
iiuc it will build two images? First one that will just create an FS with just a
docker.#Copystep and thecore.#Dockerfilewill use this FS to build its image? That sounds worse no?
Correct. I meant core.#Copy which don't produce an #Image but a new dagger.#FS
b3cc48a to
e1b9966
Compare
|
Argh looks like we are rate-limited by GitHub: https://github.com/dagger/dagger/runs/6141045840?check_suite_focus=true#step:6:1178 Looks similar to moby/buildkit#2804 |
e1b9966 to
975a740
Compare
Signed-off-by: CrazyMax <[email protected]>
975a740 to
5a160d6
Compare
Yes. Noticing more and more PRs are being affected by this. I've just restarted the CI |
Encounter this issue while building Dagger from source for our GitHub Action in dagger/dagger-for-github#53
This PR adds
gitpackage to fix this issue. We could also disablebuildvcsif you want.Also adds an action in our ci plan to check this Dockerfile builds correctly.