mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
* feat: add docker stub for deprecated ipfs/go-ipfs name implements docker part of #10941 by creating a stub image that redirects users from ipfs/go-ipfs to ipfs/kubo changes: - add stub dockerfile and script in .github/legacy/ - modify docker-image.yml to push stub to ipfs/go-ipfs with same tags as ipfs/kubo - remove ipfs/go-ipfs from get-docker-tags.sh to prevent docker-hub job from pushing to legacy name - stub displays clear deprecation message directing users to ipfs/kubo:release * docs: add v0.39 changelog highlight for go-ipfs deprecation
27 lines
752 B
Docker
27 lines
752 B
Docker
# syntax=docker/dockerfile:1
|
|
# Stub Dockerfile for the deprecated 'ipfs/go-ipfs' image name.
|
|
# This image redirects users to the new 'ipfs/kubo' name.
|
|
FROM busybox:stable-glibc
|
|
|
|
# Copy stub entrypoint that displays deprecation message
|
|
COPY .github/legacy/goipfs_stub.sh /usr/local/bin/ipfs
|
|
|
|
# Make it executable
|
|
RUN chmod +x /usr/local/bin/ipfs
|
|
|
|
# Use the same ports as the real image for compatibility
|
|
EXPOSE 4001 4001/udp 5001 8080 8081
|
|
|
|
# Create ipfs user for consistency
|
|
ENV IPFS_PATH=/data/ipfs
|
|
RUN mkdir -p $IPFS_PATH \
|
|
&& adduser -D -h $IPFS_PATH -u 1000 -G users ipfs \
|
|
&& chown ipfs:users $IPFS_PATH
|
|
|
|
# Run as ipfs user
|
|
USER ipfs
|
|
|
|
# The stub script will run and exit with an error message
|
|
ENTRYPOINT ["/usr/local/bin/ipfs"]
|
|
CMD ["daemon"]
|