Compare commits
114 Commits
v1.26.2-in
...
master
Author | SHA1 | Date | |
---|---|---|---|
f27f2a87ee | |||
758dd13965 | |||
fc8600e1c0 | |||
a9038d28bc | |||
54d35ac88c | |||
0b6cf58995 | |||
f7a51f0387 | |||
fdb1108154 | |||
6d47bcba54 | |||
|
2cd6aea94b | ||
|
73d830e2fb | ||
|
5091434f30 | ||
|
330afff2e9 | ||
|
32559aa463 | ||
|
512c70bb39 | ||
|
f9833391d6 | ||
|
170b9844ef | ||
|
aeed4cba6b | ||
|
0c7037b56f | ||
|
886020b7ed | ||
|
06f0e6beb8 | ||
|
92b67334ae | ||
|
fb3970a958 | ||
|
179d981a88 | ||
|
2ae68c841d | ||
|
5621c1a193 | ||
|
b93e89c401 | ||
|
9ce25d7a7b | ||
|
c3f0554dd3 | ||
|
3d1cc159b0 | ||
|
156a3a400c | ||
|
fc8e4c54f8 | ||
|
1d75af73fa | ||
|
fafaf0d7af | ||
|
ad8e90d31c | ||
|
a959c049b3 | ||
|
15128b69a7 | ||
|
56bbeb01af | ||
|
464e492fd2 | ||
|
83295e3a25 | ||
|
d9d1b4370c | ||
|
8dffab5d39 | ||
|
b0bc4a9632 | ||
|
bfc26cdc18 | ||
|
25b228c2f6 | ||
|
a65c8f1393 | ||
|
b12757485a | ||
|
223e08bb84 | ||
|
41bc8f8791 | ||
|
324748d01b | ||
|
c1b42a8ce0 | ||
|
b1c1839b57 | ||
|
62fe670c28 | ||
|
5bdea21ad5 | ||
|
6373701412 | ||
|
e473571dfb | ||
|
f885ffb44d | ||
|
fac1d11ccb | ||
|
b363bc3e70 | ||
|
17f6f4caf2 | ||
|
d75d7c78de | ||
|
6faeaa7d28 | ||
|
bc76004c15 | ||
|
5717ec8c0a | ||
|
8070e3424f | ||
|
17e17eaac3 | ||
|
4161c270d7 | ||
|
a478b734fd | ||
|
0175faf5c2 | ||
|
0bad4d910d | ||
|
cdcb96567c | ||
|
d0cfcd99f5 | ||
|
becfc470a2 | ||
|
39afeff95d | ||
|
c912f3bcd5 | ||
|
de38e77cfc | ||
|
96353e63ea | ||
|
47477c0b02 | ||
|
89fabbbbfe | ||
|
68c1e56cef | ||
|
9dca4346b1 | ||
|
4a5c241762 | ||
|
f2a4891ada | ||
|
7f684ec840 | ||
|
88e90aaa44 | ||
|
986f240d91 | ||
|
4ab92cae70 | ||
|
1e09e1e966 | ||
|
0e49673c49 | ||
|
cf8fed9440 | ||
|
efb4a09cf8 | ||
|
d32b8be99d | ||
|
bf5132e50b | ||
|
93fd408267 | ||
|
4b1445e3b2 | ||
|
9dd94585b6 | ||
|
3d30dedc39 | ||
|
e570693b3e | ||
|
e0a8fe3f18 | ||
|
91b0032ee4 | ||
|
685934a644 | ||
|
0490359ac6 | ||
|
2d75cc5f4e | ||
|
943c223dad | ||
|
2618b963e7 | ||
|
956ac8a77c | ||
|
538039fc8d | ||
|
271a011f81 | ||
|
c9f13253fd | ||
|
8db6e73c90 | ||
|
d7ea5561dc | ||
|
563975a85d | ||
|
e425322c2b | ||
|
0921c911a3 |
62
Dockerfile
62
Dockerfile
@ -33,18 +33,19 @@ RUN set -eux; \
|
||||
COPY ./ /opt/filecoin
|
||||
WORKDIR /opt/filecoin
|
||||
|
||||
RUN scripts/docker-git-state-check.sh
|
||||
|
||||
### make configurable filecoin-ffi build
|
||||
ARG FFI_BUILD_FROM_SOURCE=0
|
||||
ENV FFI_BUILD_FROM_SOURCE=${FFI_BUILD_FROM_SOURCE}
|
||||
|
||||
RUN make clean deps
|
||||
#RUN make clean deps
|
||||
|
||||
ARG RUSTFLAGS=""
|
||||
ARG GOFLAGS=""
|
||||
|
||||
RUN make buildall
|
||||
RUN make clean deps && \
|
||||
make lotus lotus-shed lotus-stats && \
|
||||
install -C ./lotus /usr/local/bin/lotus && \
|
||||
install -C ./lotus-shed /usr/local/bin/lotus-shed && \
|
||||
install -C ./lotus-stats /usr/local/bin/lotus-stats
|
||||
|
||||
#####################################
|
||||
FROM ubuntu:20.04 AS lotus-base
|
||||
@ -69,12 +70,11 @@ RUN useradd -r -u 532 -U fc \
|
||||
FROM lotus-base AS lotus
|
||||
MAINTAINER Lotus Development Team
|
||||
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-shed /usr/local/bin/
|
||||
COPY scripts/docker-lotus-entrypoint.sh /
|
||||
COPY --from=lotus-builder \
|
||||
/usr/local/bin/lotus \
|
||||
/usr/local/bin/lotus-shed \
|
||||
/usr/local/bin/
|
||||
|
||||
ARG DOCKER_LOTUS_IMPORT_SNAPSHOT https://snapshots.mainnet.filops.net/minimal/latest
|
||||
ENV DOCKER_LOTUS_IMPORT_SNAPSHOT ${DOCKER_LOTUS_IMPORT_SNAPSHOT}
|
||||
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
|
||||
ENV LOTUS_PATH /var/lib/lotus
|
||||
ENV DOCKER_LOTUS_IMPORT_WALLET ""
|
||||
@ -89,52 +89,42 @@ USER fc
|
||||
|
||||
EXPOSE 1234
|
||||
|
||||
ENTRYPOINT ["/docker-lotus-entrypoint.sh"]
|
||||
|
||||
CMD ["-help"]
|
||||
|
||||
#####################################
|
||||
FROM lotus-base AS lotus-all-in-one
|
||||
|
||||
# Install netcat for healthcheck
|
||||
RUN apt-get update && apt-get install -y netcat && apt-get install -y iproute2
|
||||
|
||||
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
|
||||
ENV LOTUS_MINER_PATH /var/lib/lotus-miner
|
||||
ENV LOTUS_PATH /var/lib/lotus
|
||||
ENV LOTUS_WORKER_PATH /var/lib/lotus-worker
|
||||
ENV WALLET_PATH /var/lib/lotus-wallet
|
||||
|
||||
ARG DOCKER_LOTUS_IMPORT_SNAPSHOT=https://forest-archive.chainsafe.dev/latest/mainnet/
|
||||
ENV DOCKER_LOTUS_IMPORT_SNAPSHOT=${DOCKER_LOTUS_IMPORT_SNAPSHOT}
|
||||
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-seed /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-shed /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-wallet /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-gateway /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-miner /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-worker /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-provider /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-stats /usr/local/bin/
|
||||
COPY --from=lotus-builder /opt/filecoin/lotus-fountain /usr/local/bin/
|
||||
COPY scripts/docker-lotus-entrypoint.sh /docker-lotus-entrypoint.sh
|
||||
RUN chmod +x /docker-lotus-entrypoint.sh
|
||||
|
||||
RUN mkdir /var/tmp/filecoin-proof-parameters
|
||||
RUN mkdir /var/lib/lotus
|
||||
RUN mkdir /var/lib/lotus-miner
|
||||
RUN mkdir /var/lib/lotus-worker
|
||||
RUN mkdir /var/lib/lotus-wallet
|
||||
RUN mkdir /var/lib/lotus-provider
|
||||
|
||||
RUN chown fc: /var/tmp/filecoin-proof-parameters
|
||||
RUN chown fc: /var/lib/lotus
|
||||
RUN chown fc: /var/lib/lotus-miner
|
||||
RUN chown fc: /var/lib/lotus-worker
|
||||
RUN chown fc: /var/lib/lotus-wallet
|
||||
RUN chown fc: /var/lib/lotus-provider
|
||||
|
||||
|
||||
VOLUME /var/tmp/filecoin-proof-parameters
|
||||
VOLUME /var/lib/lotus
|
||||
VOLUME /var/lib/lotus-miner
|
||||
VOLUME /var/lib/lotus-worker
|
||||
VOLUME /var/lib/lotus-wallet
|
||||
VOLUME /var/lib/lotus-provider
|
||||
#VOLUME /var/lib/lotus-miner
|
||||
#VOLUME /var/lib/lotus-worker
|
||||
#VOLUME /var/lib/lotus-wallet
|
||||
|
||||
|
||||
|
||||
EXPOSE 1234
|
||||
EXPOSE 2345
|
||||
EXPOSE 3456
|
||||
EXPOSE 1777
|
||||
EXPOSE 1235
|
||||
|
||||
|
@ -37,7 +37,7 @@ func BuildTypeString() string {
|
||||
}
|
||||
|
||||
// BuildVersion is the local build version
|
||||
const BuildVersion = "1.26.2"
|
||||
const BuildVersion = "1.26.3"
|
||||
|
||||
func UserVersion() string {
|
||||
if os.Getenv("LOTUS_VERSION_IGNORE_COMMIT") == "1" {
|
||||
|
@ -5,7 +5,7 @@ if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then
|
||||
# Don't init if already initialized.
|
||||
if [ ! -f "$GATE" ]; then
|
||||
echo importing minimal snapshot
|
||||
/usr/local/bin/lotus daemon --import-snapshot "$DOCKER_LOTUS_IMPORT_SNAPSHOT" --halt-after-import
|
||||
echo "yes" | /usr/local/bin/lotus daemon --import-snapshot "$DOCKER_LOTUS_IMPORT_SNAPSHOT" --halt-after-import
|
||||
# Block future inits
|
||||
date > "$GATE"
|
||||
fi
|
||||
@ -16,4 +16,4 @@ if [ ! -z $DOCKER_LOTUS_IMPORT_WALLET ]; then
|
||||
/usr/local/bin/lotus-shed keyinfo import "$DOCKER_LOTUS_IMPORT_WALLET"
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/lotus $@
|
||||
exec /usr/local/bin/lotus daemon $@
|
||||
|
Loading…
Reference in New Issue
Block a user