-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Study how glibc ipfs docker image affects cluster docker images #154
Comments
Is ipfs-cluster something we should have in mind when making changes to go-ipfs's dockerfile? We try to keep it stable of course. |
Okay I see, you build the ipfs-cluster image from the ipfs/go-ipfs:release image -- after ipfs/kubo#4219 you just get a bare busybox image containing the go-ipfs binary, no package manager whatsoever. |
Maybe you can do a multistage dockerfile too -- first stage builds the ipfs-cluster binaries, second stage is built FROM ipfs/go-ipfs:release and COPYs the ipfs-cluster binaries from the first stage. |
yes yes, it has only broken for us in like every PR touching the dockerfile :)
There are permissions and ipfs-setup in the container which seems important and that's why we re-used . However I'm in the mind of simply not including ipfs in the ipfs-cluster container. Probably keep one that includes everything just for testing. But I'm not sure, I have to think a bit more about it. |
After changes on how the final docker image for go-ipfs is generated, our Dockerfiles failed to build. The new version is inspired on go-ipfs Dockerfile. It takes advantage of docker >= v17.06 which allows multi-stage Dockerfiles with several FROM directives and COPY --from. This allows build freely on a first stage, without thinking of cleaning up, and then just copy the final artifacts to a second, minimal image. The Dockerfile-test is similarly updated. Minor changes have been applied to the entrypoints. License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
Tests need bash for the moment. License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
Tests need bash for the moment. License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
See: ipfs/kubo#4219
The text was updated successfully, but these errors were encountered: