-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add Docker support #245
Add Docker support #245
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swarm.ResourceMgr.Limits
is being removed in Kubo 0.19 (ipfs/kubo#9603), if you want to adjust libp2p limits, use the upstream API (https://pkg.go.dev/github.com/libp2p/go-libp2p/p2p/host/resource-manager#PartialLimitConfig).
ok @lidel and @guseggert. Sorry for the late update here ... I made the changes you requested. Can someone else test it? |
@hacdias is going to give this a run and report back. |
Agreed Co-authored-by: Adin Schmahmann <[email protected]>
I made the recommended changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not having success running this docker image. I follow your steps and get:
Changing user to ipfs
/usr/local/bin/start_ipfs: line 16: ipfs: not found
Could you please ensure that the Dockerfile is correct and woking properly? Or maybe something's wrong with the instructions, which I followed.
@koxon any chance you have time to look into this, to push it over the finish line? |
Will look into it now |
Looks like the latest Kubo version v0.20 breaks things for me. |
… work on v0.20 for now
@hacdias I made an update to the Dockerfile to target v0.19.2 Kubo Docker image. When using v0.20, the ipfs binary somehow doesn't find ipfs ... My Dockerfile compiles IPFS from the source and I copy the binary from the "builder" Docker stage to the main stage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your issue should work now. I made new commit to the PR
Thanks, it seems to work. |
New folder containing a
dockerfile
, a001-config.sh
init.d script and aREADME.md
.The
dockerfile
compiles Kubo with thego-ds-s3
plugin and installs the new binary and libraries in the final Docker image. We also installjq
to manipulate the IPFS config file in the init.d shell script.Environment variables are expected for the container to run, see the README.
I think this could be an interesting add to the repo. Thoughts?