-
Notifications
You must be signed in to change notification settings - Fork 1.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
add docker-compose file #6544
add docker-compose file #6544
Conversation
FROM base AS lotus | ||
MAINTAINER Lotus Development Team | ||
|
||
COPY --from=builder /opt/filecoin/lotus /usr/local/bin/ | ||
COPY --from=builder /opt/filecoin/lotus-shed /usr/local/bin/ |
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.
You should keep lotus-shed, it's really useful
scripts/docker-lotus-entrypoint.sh
Outdated
|
||
if [ ! -z DOCKER_LOTUS_WALLET_IMPORT ]; then | ||
mkdir $LOTUS_PATH/keystore | ||
cp "${DOCKER_LOTUS_WALLET_IMPORT}" "${LOTUS_PATH}/keystore" |
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.
You should use lotus-shed keyinfo import
, it's compatible with lotus export
, and lotus-shed keyinfo new [bls|secp256k1|libp2p-host]
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.
Thanks, good point.
RUN mkdir /var/lib/lotus /var/tmp/filecoin-proof-parameters && chown fc /var/lib/lotus /var/tmp/filecoin-proof-parameters | ||
ENTRYPOINT ["/docker-lotus-entrypoint.sh"] | ||
|
||
CMD ["-help"] |
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.
/docker-lotus-entrypoint.sh
doesn't have a help flag
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.
/docker-lotus-entrypoint.sh
doesn't have a help flag
It only does because it exec's to lotus at the end.
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.
oh nice
@coryschwartz : per updated Lotus CR policy, can you get an approval on your team, and then merge if maintainers haven't replied within 2 business days? Ping me on Slack if you need more info here. |
Thanks @BigLep @travisperson let me know if you see any problems here, I had this sitting in draft for a while so it's already pretty ancient. |
docker-compose up -d
and away you go.