Skip to content
Snippets Groups Projects
Unverified Commit 495f12c0 authored by Steven Allen's avatar Steven Allen Committed by GitHub
Browse files

Merge pull request #6188 from kpcyrd/docker-entrypoint

Dockerfile: Remove 2 year old deprecation warning
parents c91e0756 9317649c
No related branches found
No related tags found
No related merge requests found
......@@ -26,22 +26,4 @@ else
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
fi
# if the first argument is daemon
if [ "$1" = "daemon" ]; then
# filter the first argument until
# https://github.com/ipfs/go-ipfs/pull/3573
# has been resolved
shift
else
# print deprecation warning
# go-ipfs used to hardcode "ipfs daemon" in it's entrypoint
# this workaround supports the new syntax so people start setting daemon explicitly
# when overwriting CMD
echo "DEPRECATED: arguments have been set but the first argument isn't 'daemon'" >&2
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
fi
exec ipfs daemon "$@"
exec ipfs "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment