-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Dockerfile: Deprecate implicit daemon argument #3685
Conversation
3588cbb
to
77e4c64
Compare
echo "DEPRECATED: run 'docker run ipfs/go-ipfs daemon $@' instead" >&2 | ||
echo "DEPRECATED: see the following PRs for more information:" >&2 | ||
echo "DEPRECATED: * https://github.com/ipfs/go-ipfs/pull/3573" >&2 | ||
echo "DEPRECATED: * https://github.com/ipfs/go-ipfs/pull/3685" >&2 |
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.
What would be nice is to have something like tracking pixel
to know when people made transition but some might deem it to intrusive.
After the discussion in ipfs#3573 this patch prints a deprecation warning if: 1) the image has been executed with additional arguments 2) the first argument isn't daemon This way people are able to migrate to the new syntax without any breaking changes. License: MIT Signed-off-by: kpcyrd <[email protected]>
License: MIT Signed-off-by: kpcyrd <[email protected]>
This keeps docker containers from entering a crashloop on new image versions License: MIT Signed-off-by: kpcyrd <[email protected]>
This LGTM, thanks! 👍 Apart from the daemon argument, this also makes |
yup, sorry for the unrelated changes, but that's exactly what happened for me :) |
This commit adds `daemon` to the end of the `docker run` args whenever the user passes in `<ipfs-args>` to `iptb start -- <ipfs-args>`. Without this additional argument, the IPFS daemon logs a deprecation warning. We don't want to pass `daemon` into `docker run` when the user hasn't provided additional args, because `docker run` has default args when nothing else is passed. For more info, see: - ipfs/kubo#3573 - ipfs/kubo#3685 License: MIT Signed-off-by: David Grisham <[email protected]>
what if I want run |
After the discussion in #3573 this patch prints a deprecation warning if:
This way people are able to migrate to the new syntax without any breaking changes.
License: MIT
Signed-off-by: kpcyrd [email protected]