forked from cerc-io/stack-orchestrator
Compare commits
67
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f08556937 | ||
|
|
36fd4533c3 | ||
|
|
aa2c32be67 | ||
|
|
ead9c8b18c | ||
|
|
057e0c5372 | ||
|
|
a7da7b4f87 | ||
|
|
21f7b96eb4 | ||
|
|
7d347e84fd | ||
|
|
15295ae2d1 | ||
|
|
9b9da72b9b | ||
|
|
1ccbd415a9 | ||
|
|
469ff7a086 | ||
|
|
82bdf82978 | ||
|
|
6e61aafd6e | ||
|
|
8b634fc791 | ||
|
|
0138102f76 | ||
|
|
11279aab78 | ||
|
|
3ec6f4e913 | ||
|
|
637b40d39e | ||
|
|
f75ad6cdfc | ||
|
|
972b7d4a09 | ||
|
|
503700bda6 | ||
|
|
2afb94932a | ||
|
|
dd3f582d82 | ||
|
|
b3f1a66e8f | ||
|
|
ac40462ee2 | ||
|
|
7a9796ffe2 | ||
|
|
fa5fb38ba8 | ||
|
|
ced6661cf7 | ||
|
|
7aa9f10a95 | ||
|
|
9446db9c5f | ||
|
|
508112f819 | ||
|
|
b6296fdc66 | ||
|
|
48c19c1e1d | ||
|
|
44753db277 | ||
|
|
5af28b9de6 | ||
|
|
447e1215ad | ||
|
|
b2838334f2 | ||
|
|
2a7a1c46b0 | ||
|
|
fbdde91953 | ||
|
|
b5ad39f94a | ||
|
|
dc3ab712b0 | ||
|
|
99f8c02f9c | ||
|
|
91b3fb41f3 | ||
|
|
7be0f8beac | ||
|
|
814cbdaa9d | ||
|
|
bf0027d10f | ||
|
|
42a1657afc | ||
|
|
fe6b15b6a6 | ||
|
|
8e8e9539bd | ||
|
|
af1167234c | ||
|
|
d13892b879 | ||
|
|
277fbae98f | ||
|
|
9ffa37c686 | ||
|
|
c787cb59ef | ||
|
|
8deb26414b | ||
|
|
bf18317f98 | ||
|
|
9219fa133f | ||
|
|
41cec3467f | ||
|
|
efb07bd8ce | ||
|
|
dace83c5b2 | ||
|
|
253aaf9ca9 | ||
|
|
242019ffa5 | ||
|
|
9d973844be | ||
|
|
461c298d0a | ||
|
|
71fb7aee5c | ||
|
|
6baa2e2314 |
@@ -5,7 +5,7 @@ services:
|
|||||||
hostname: lotus-miner
|
hostname: lotus-miner
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-lotus/lotus-env.env
|
- ../config/fixturenet-lotus/lotus-env.env
|
||||||
image: cerc/lotus:local
|
image: cerc/lotus-fixturenet:local
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-lotus/setup-miner.sh:/docker-entrypoint-scripts.d/setup-miner.sh
|
- ../config/fixturenet-lotus/setup-miner.sh:/docker-entrypoint-scripts.d/setup-miner.sh
|
||||||
- ../config/fixturenet-lotus/fund-account.sh:/fund-account.sh
|
- ../config/fixturenet-lotus/fund-account.sh:/fund-account.sh
|
||||||
@@ -26,7 +26,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
# Use 0.0.0.0 so that calls can be made from outside the container
|
# Use 0.0.0.0 so that calls can be made from outside the container
|
||||||
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
||||||
image: cerc/lotus:local
|
image: cerc/lotus-fixturenet:local
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-lotus/setup-node.sh:/docker-entrypoint-scripts.d/setup-node.sh
|
- ../config/fixturenet-lotus/setup-node.sh:/docker-entrypoint-scripts.d/setup-node.sh
|
||||||
- lotus_node_1_params:/var/tmp/filecoin-proof-parameters
|
- lotus_node_1_params:/var/tmp/filecoin-proof-parameters
|
||||||
@@ -42,10 +42,10 @@ services:
|
|||||||
- lotus-miner
|
- lotus-miner
|
||||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
||||||
ports:
|
ports:
|
||||||
- "1234"
|
- "1235"
|
||||||
- "2345"
|
- "2346"
|
||||||
- "3456"
|
- "3457"
|
||||||
- "1777"
|
- "1778"
|
||||||
|
|
||||||
lotus-node-2:
|
lotus-node-2:
|
||||||
hostname: lotus-node-2
|
hostname: lotus-node-2
|
||||||
@@ -54,7 +54,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
# Use 0.0.0.0 so that calls can be made from outside the container
|
# Use 0.0.0.0 so that calls can be made from outside the container
|
||||||
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
||||||
image: cerc/lotus:local
|
image: cerc/lotus-fixturenet:local
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-lotus/setup-node.sh:/docker-entrypoint-scripts.d/setup-node.sh
|
- ../config/fixturenet-lotus/setup-node.sh:/docker-entrypoint-scripts.d/setup-node.sh
|
||||||
- lotus_node_2_params:/var/tmp/filecoin-proof-parameters
|
- lotus_node_2_params:/var/tmp/filecoin-proof-parameters
|
||||||
@@ -70,10 +70,10 @@ services:
|
|||||||
- lotus-miner
|
- lotus-miner
|
||||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
||||||
ports:
|
ports:
|
||||||
- "1234"
|
- "1236"
|
||||||
- "2345"
|
- "2347"
|
||||||
- "3456"
|
- "3458"
|
||||||
- "1777"
|
- "1779"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
lotus_miner_params:
|
lotus_miner_params:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
hostname: fixturenet-eth-bootnode-geth
|
hostname: fixturenet-eth-bootnode-geth
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
environment:
|
environment:
|
||||||
RUN_BOOTNODE: "true"
|
RUN_BOOTNODE: "true"
|
||||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||||
@@ -24,9 +24,8 @@ services:
|
|||||||
CERC_RUN_STATEDIFF: ${CERC_RUN_STATEDIFF:-detect}
|
CERC_RUN_STATEDIFF: ${CERC_RUN_STATEDIFF:-detect}
|
||||||
CERC_STATEDIFF_DB_NODE_ID: 1
|
CERC_STATEDIFF_DB_NODE_ID: 1
|
||||||
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
||||||
CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false}
|
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
image: cerc/fixturenet-plugeth-plugeth:local
|
image: cerc/fixturenet-plugeth-plugeth:local
|
||||||
volumes:
|
volumes:
|
||||||
- fixturenet_plugeth_geth_1_data:/root/ethdata
|
- fixturenet_plugeth_geth_1_data:/root/ethdata
|
||||||
@@ -56,7 +55,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
CERC_KEEP_RUNNING_AFTER_GETH_EXIT: "true"
|
CERC_KEEP_RUNNING_AFTER_GETH_EXIT: "true"
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
image: cerc/fixturenet-plugeth-plugeth:local
|
image: cerc/fixturenet-plugeth-plugeth:local
|
||||||
depends_on:
|
depends_on:
|
||||||
- fixturenet-eth-bootnode-geth
|
- fixturenet-eth-bootnode-geth
|
||||||
@@ -83,7 +82,7 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
environment:
|
environment:
|
||||||
NODE_NUMBER: "1"
|
NODE_NUMBER: "1"
|
||||||
ETH1_ENDPOINT: "http://fixturenet-eth-geth-1:8545"
|
ETH1_ENDPOINT: "http://fixturenet-eth-geth-1:8545"
|
||||||
@@ -109,7 +108,7 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
env_file:
|
env_file:
|
||||||
- ../config/fixturenet-plugeth/fixturenet-eth.env
|
- ../config/fixturenet-eth/fixturenet-eth.env
|
||||||
environment:
|
environment:
|
||||||
NODE_NUMBER: "2"
|
NODE_NUMBER: "2"
|
||||||
ETH1_ENDPOINT: "http://fixturenet-eth-geth-2:8545"
|
ETH1_ENDPOINT: "http://fixturenet-eth-geth-2:8545"
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
volumes:
|
||||||
|
parameters:
|
||||||
|
lotus-repo:
|
||||||
|
lotus_shared:
|
||||||
|
|
||||||
|
services:
|
||||||
|
lotus:
|
||||||
|
environment:
|
||||||
|
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
||||||
|
- LOTUS_LIBP2P_LISTENADDRESSES=/ip4/0.0.0.0/tcp/1235,/ip6/::/tcp/1235,/ip4/0.0.0.0/udp/1235/quic-v1,/ip6/::/udp/1235/quic-v1,/ip4/0.0.0.0/udp/1235/quic-v1/webtransport,/ip6/::/udp/1235/quic-v1/webtransport
|
||||||
|
image: cerc/lotus-mainnet:local
|
||||||
|
volumes:
|
||||||
|
- parameters:/var/tmp/filecoin-proof-parameters
|
||||||
|
- lotus-repo:/var/lib/lotus
|
||||||
|
- lotus_shared:/root/.lotus
|
||||||
|
ports:
|
||||||
|
- "1234"
|
||||||
|
- "1235"
|
||||||
|
deploy:
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
delay: 30s
|
||||||
|
entrypoint: ["sh", "/docker-lotus-entrypoint.sh"]
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
# The password used to access test accounts (eg, via personal_unlockAccount). The password is the same for all accounts.
|
|
||||||
ACCOUNT_PASSWORD=secret1212
|
|
||||||
|
|
||||||
# ENODE of the geth bootnode.
|
|
||||||
BOOTNODE_KEY="b0ac22adcad37213c7c565810a50f1772291e7b0ce53fb73e7ec2a3c75bc13b5"
|
|
||||||
ENODE="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@fixturenet-eth-bootnode-geth:30303"
|
|
||||||
|
|
||||||
# JWT shared by geth and lighthouse for authentication.
|
|
||||||
JWT="0x6cdcac3501046a08e186730dd8bd136cfaf0fdc1fc955f6e15ad3068c0ff2af0"
|
|
||||||
|
|
||||||
# URL to download the ENR of the lighthouse bootnode (generated at first start).
|
|
||||||
ENR_URL="http://fixturenet-eth-bootnode-lighthouse:3000/bootnode/enr.dat"
|
|
||||||
|
|
||||||
# DB connection settings for statediffing (see docker-compose-db.yml)
|
|
||||||
CERC_STATEDIFF_DB_HOST="ipld-eth-db"
|
|
||||||
CERC_STATEDIFF_DB_PORT=5432
|
|
||||||
CERC_STATEDIFF_DB_NAME="cerc_testing"
|
|
||||||
CERC_STATEDIFF_DB_USER="vdbm"
|
|
||||||
CERC_STATEDIFF_DB_PASSWORD="password"
|
|
||||||
CERC_STATEDIFF_DB_GOOSE_MIN_VER=${CERC_STATEDIFF_DB_GOOSE_MIN_VER:-18}
|
|
||||||
CERC_STATEDIFF_DB_LOG_STATEMENTS="${CERC_STATEDIFF_DB_LOG_STATEMENTS:-false}"
|
|
||||||
CERC_STATEDIFF_WORKERS=2
|
|
||||||
|
|
||||||
CERC_GETH_VMODULE="statediff/*=5,rpc/*=5"
|
|
||||||
CERC_GETH_VERBOSITY=${CERC_GETH_VERBOSITY:-3}
|
|
||||||
|
|
||||||
# Used by Lighthouse
|
|
||||||
SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-3}
|
|
||||||
@@ -109,10 +109,6 @@ else
|
|||||||
OTHER_OPTS="--miner.threads=1"
|
OTHER_OPTS="--miner.threads=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CERC_ALLOW_UNPROTECTED_TXS" == "true" ]; then
|
|
||||||
OTHER_OPTS+=" --rpc.allow-unprotected-txs"
|
|
||||||
fi
|
|
||||||
|
|
||||||
$START_CMD \
|
$START_CMD \
|
||||||
--datadir="${CERC_ETH_DATADIR}" \
|
--datadir="${CERC_ETH_DATADIR}" \
|
||||||
--bootnodes="${ENODE}" \
|
--bootnodes="${ENODE}" \
|
||||||
|
|||||||
+4
-5
@@ -1,5 +1,5 @@
|
|||||||
#####################################
|
#####################################
|
||||||
FROM golang:1.19.12-bullseye AS lotus-builder
|
FROM golang:1.21.7-bullseye AS lotus-builder
|
||||||
MAINTAINER Lotus Development Team
|
MAINTAINER Lotus Development Team
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates build-essential clang ocl-icd-opencl-dev ocl-icd-libopencl1 jq libhwloc-dev
|
RUN apt-get update && apt-get install -y ca-certificates build-essential clang ocl-icd-opencl-dev ocl-icd-libopencl1 jq libhwloc-dev
|
||||||
@@ -29,7 +29,6 @@ RUN set -eux; \
|
|||||||
rustup --version; \
|
rustup --version; \
|
||||||
cargo --version; \
|
cargo --version; \
|
||||||
rustc --version;
|
rustc --version;
|
||||||
|
|
||||||
COPY ./ /opt/filecoin
|
COPY ./ /opt/filecoin
|
||||||
WORKDIR /opt/filecoin
|
WORKDIR /opt/filecoin
|
||||||
|
|
||||||
@@ -38,13 +37,13 @@ WORKDIR /opt/filecoin
|
|||||||
### make configurable filecoin-ffi build
|
### make configurable filecoin-ffi build
|
||||||
ARG FFI_BUILD_FROM_SOURCE=0
|
ARG FFI_BUILD_FROM_SOURCE=0
|
||||||
ENV FFI_BUILD_FROM_SOURCE=${FFI_BUILD_FROM_SOURCE}
|
ENV FFI_BUILD_FROM_SOURCE=${FFI_BUILD_FROM_SOURCE}
|
||||||
|
RUN ls /opt/filecoin
|
||||||
RUN make clean deps
|
RUN make clean deps
|
||||||
|
|
||||||
ARG RUSTFLAGS=""
|
ARG RUSTFLAGS=""
|
||||||
ARG GOFLAGS=""
|
ARG GOFLAGS=""
|
||||||
|
|
||||||
#RUN make buildall
|
#RUN make lotus
|
||||||
RUN make 2k
|
RUN make 2k
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@@ -75,7 +74,7 @@ COPY --from=lotus-builder /opt/filecoin/lotus-shed /usr/local/bin/
|
|||||||
#COPY scripts/docker-lotus-entrypoint.sh /
|
#COPY scripts/docker-lotus-entrypoint.sh /
|
||||||
#COPY myscripts/setup-node.sh /docker-entrypoint-scripts.d/setup-node.sh
|
#COPY myscripts/setup-node.sh /docker-entrypoint-scripts.d/setup-node.sh
|
||||||
|
|
||||||
ARG DOCKER_LOTUS_IMPORT_SNAPSHOT https://snapshots.mainnet.filops.net/minimal/latest
|
ARG DOCKER_LOTUS_IMPORT_SNAPSHOT https://forest-archive.chainsafe.dev/latest/mainnet/
|
||||||
ENV DOCKER_LOTUS_IMPORT_SNAPSHOT ${DOCKER_LOTUS_IMPORT_SNAPSHOT}
|
ENV DOCKER_LOTUS_IMPORT_SNAPSHOT ${DOCKER_LOTUS_IMPORT_SNAPSHOT}
|
||||||
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
|
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
|
||||||
ENV LOTUS_PATH /var/lib/lotus
|
ENV LOTUS_PATH /var/lib/lotus
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build cerc/lotus
|
# Build cerc/fixturenet-lotus
|
||||||
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
# Use a release version tag to match the modified Dockerfile replaced in next step
|
# Use a release version tag to match the modified Dockerfile replaced in next step
|
||||||
git -C ${CERC_REPO_BASE_DIR}/lotus checkout v1.23.3
|
git -C ${CERC_REPO_BASE_DIR}/lotus checkout master
|
||||||
|
|
||||||
# Replace repo's Dockerfile with modified one
|
# Replace repo's Dockerfile with modified one
|
||||||
cp ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/lotus/Dockerfile
|
cp ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/lotus/Dockerfile
|
||||||
|
|
||||||
docker build -t cerc/lotus:local ${build_command_args} ${CERC_REPO_BASE_DIR}/lotus
|
docker build -t cerc/fixturenet-lotus:local ${build_command_args} ${CERC_REPO_BASE_DIR}/lotus
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
#####################################
|
||||||
|
FROM golang:1.21.7-bullseye AS lotus-builder
|
||||||
|
MAINTAINER Lotus Development Team
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates build-essential clang ocl-icd-opencl-dev ocl-icd-libopencl1 jq libhwloc-dev
|
||||||
|
|
||||||
|
ENV XDG_CACHE_HOME="/tmp"
|
||||||
|
|
||||||
|
### taken from https://github.com/rust-lang/docker-rust/blob/master/1.63.0/buster/Dockerfile
|
||||||
|
ENV RUSTUP_HOME=/usr/local/rustup \
|
||||||
|
CARGO_HOME=/usr/local/cargo \
|
||||||
|
PATH=/usr/local/cargo/bin:$PATH \
|
||||||
|
RUST_VERSION=1.63.0
|
||||||
|
|
||||||
|
RUN set -eux; \
|
||||||
|
dpkgArch="$(dpkg --print-architecture)"; \
|
||||||
|
case "${dpkgArch##*-}" in \
|
||||||
|
amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='5cc9ffd1026e82e7fb2eec2121ad71f4b0f044e88bca39207b3f6b769aaa799c' ;; \
|
||||||
|
arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='e189948e396d47254103a49c987e7fb0e5dd8e34b200aa4481ecc4b8e41fb929' ;; \
|
||||||
|
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
|
||||||
|
esac; \
|
||||||
|
url="https://static.rust-lang.org/rustup/archive/1.25.1/${rustArch}/rustup-init"; \
|
||||||
|
wget "$url"; \
|
||||||
|
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
|
||||||
|
chmod +x rustup-init; \
|
||||||
|
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
|
||||||
|
rm rustup-init; \
|
||||||
|
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
|
||||||
|
rustup --version; \
|
||||||
|
cargo --version; \
|
||||||
|
rustc --version;
|
||||||
|
|
||||||
|
COPY ./ /opt/filecoin
|
||||||
|
WORKDIR /opt/filecoin
|
||||||
|
|
||||||
|
ARG FFI_BUILD_FROM_SOURCE=0
|
||||||
|
ENV FFI_BUILD_FROM_SOURCE=${FFI_BUILD_FROM_SOURCE}
|
||||||
|
|
||||||
|
#RUN make clean deps
|
||||||
|
|
||||||
|
ARG RUSTFLAGS=""
|
||||||
|
ARG GOFLAGS=""
|
||||||
|
|
||||||
|
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
|
||||||
|
MAINTAINER Lotus Development Team
|
||||||
|
|
||||||
|
# Base resources
|
||||||
|
COPY --from=lotus-builder /etc/ssl/certs /etc/ssl/certs
|
||||||
|
COPY --from=lotus-builder /lib/*/libdl.so.2 /lib/
|
||||||
|
COPY --from=lotus-builder /lib/*/librt.so.1 /lib/
|
||||||
|
COPY --from=lotus-builder /lib/*/libgcc_s.so.1 /lib/
|
||||||
|
COPY --from=lotus-builder /lib/*/libutil.so.1 /lib/
|
||||||
|
COPY --from=lotus-builder /usr/lib/*/libltdl.so.7 /lib/
|
||||||
|
COPY --from=lotus-builder /usr/lib/*/libnuma.so.1 /lib/
|
||||||
|
COPY --from=lotus-builder /usr/lib/*/libhwloc.so.* /lib/
|
||||||
|
COPY --from=lotus-builder /usr/lib/*/libOpenCL.so.1 /lib/
|
||||||
|
|
||||||
|
RUN useradd -r -u 532 -U fc \
|
||||||
|
&& mkdir -p /etc/OpenCL/vendors \
|
||||||
|
&& echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
FROM lotus-base AS lotus
|
||||||
|
MAINTAINER Lotus Development Team
|
||||||
|
|
||||||
|
COPY --from=lotus-builder \
|
||||||
|
/usr/local/bin/lotus \
|
||||||
|
/usr/local/bin/lotus-shed \
|
||||||
|
/usr/local/bin/
|
||||||
|
|
||||||
|
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
|
||||||
|
ENV LOTUS_PATH /var/lib/lotus
|
||||||
|
ENV DOCKER_LOTUS_IMPORT_WALLET ""
|
||||||
|
|
||||||
|
RUN mkdir /var/lib/lotus /var/tmp/filecoin-proof-parameters
|
||||||
|
RUN chown fc: /var/lib/lotus /var/tmp/filecoin-proof-parameters
|
||||||
|
|
||||||
|
VOLUME /var/lib/lotus
|
||||||
|
VOLUME /var/tmp/filecoin-proof-parameters
|
||||||
|
|
||||||
|
USER fc
|
||||||
|
|
||||||
|
EXPOSE 1234
|
||||||
|
|
||||||
|
|
||||||
|
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_PATH /var/lib/lotus
|
||||||
|
|
||||||
|
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-shed /usr/local/bin/
|
||||||
|
COPY --from=lotus-builder /opt/filecoin/lotus-stats /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 chown fc: /var/tmp/filecoin-proof-parameters
|
||||||
|
RUN chown fc: /var/lib/lotus
|
||||||
|
|
||||||
|
|
||||||
|
VOLUME /var/tmp/filecoin-proof-parameters
|
||||||
|
VOLUME /var/lib/lotus
|
||||||
|
|
||||||
|
EXPOSE 1234
|
||||||
|
EXPOSE 1235
|
||||||
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build cerc/mainnet-lotus
|
||||||
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
|
git stash
|
||||||
|
|
||||||
|
# Use a release version tag to match the modified Dockerfile replaced in next step
|
||||||
|
git -C ${CERC_REPO_BASE_DIR}/lotus checkout master
|
||||||
|
|
||||||
|
# Replace repo's Dockerfile with modified one
|
||||||
|
cp ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/lotus/Dockerfile
|
||||||
|
|
||||||
|
docker build -t cerc/lotus-mainnet:local ${build_command_args} ${CERC_REPO_BASE_DIR}/lotus
|
||||||
@@ -41,7 +41,8 @@ cerc/pocket
|
|||||||
cerc/watcher-azimuth
|
cerc/watcher-azimuth
|
||||||
cerc/ipld-eth-state-snapshot
|
cerc/ipld-eth-state-snapshot
|
||||||
cerc/watcher-gelato
|
cerc/watcher-gelato
|
||||||
cerc/lotus
|
cerc/mainnet-lotus
|
||||||
|
cerc/fixturenet-lotus
|
||||||
cerc/go-opera
|
cerc/go-opera
|
||||||
cerc/lasso
|
cerc/lasso
|
||||||
cerc/reth
|
cerc/reth
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ fixturenet-pocket
|
|||||||
watcher-azimuth
|
watcher-azimuth
|
||||||
watcher-gelato
|
watcher-gelato
|
||||||
fixturenet-lotus
|
fixturenet-lotus
|
||||||
|
mainnet-lotus
|
||||||
mainnet-go-opera
|
mainnet-go-opera
|
||||||
lasso
|
lasso
|
||||||
reth
|
reth
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ version: "1.0"
|
|||||||
name: fixturenet-lotus
|
name: fixturenet-lotus
|
||||||
description: "A lotus fixturenet"
|
description: "A lotus fixturenet"
|
||||||
repos:
|
repos:
|
||||||
- github.com/filecoin-project/lotus
|
- git.vdb.to/cerc-io/lotus
|
||||||
containers:
|
containers:
|
||||||
- cerc/lotus
|
- cerc/fixturenet-lotus
|
||||||
pods:
|
pods:
|
||||||
- fixturenet-lotus
|
- fixturenet-lotus
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
# fixturenet-plugeth
|
|
||||||
|
|
||||||
A variation of `fixturenet-eth` that uses `plugeth` instead of `go-ethereum`.
|
|
||||||
|
|
||||||
See `stacks/fixturenet-eth/README.md` for more information.
|
|
||||||
|
|
||||||
## Containers
|
|
||||||
|
|
||||||
* cerc/lighthouse
|
|
||||||
* cerc/fixturenet-eth-plugeth
|
|
||||||
* cerc/fixturenet-eth-lighthouse
|
|
||||||
|
|
||||||
## Deploy the stack
|
|
||||||
|
|
||||||
```bash
|
|
||||||
laconic-so --stack fixturenet-plugeth setup-repositories
|
|
||||||
laconic-so --stack fixturenet-plugeth build-containers
|
|
||||||
laconic-so --stack fixturenet-plugeth deploy up
|
|
||||||
```
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
version: "1.0"
|
|
||||||
name: fixturenet-plugeth
|
|
||||||
description: "Plugeth Ethereum Fixturenet"
|
|
||||||
repos:
|
|
||||||
- git.vdb.to/cerc-io/plugeth@statediff
|
|
||||||
- git.vdb.to/cerc-io/plugeth-statediff
|
|
||||||
- git.vdb.to/cerc-io/lighthouse
|
|
||||||
containers:
|
|
||||||
- cerc/plugeth-statediff
|
|
||||||
- cerc/plugeth
|
|
||||||
- cerc/fixturenet-eth-genesis
|
|
||||||
- cerc/fixturenet-plugeth-plugeth
|
|
||||||
- cerc/lighthouse
|
|
||||||
- cerc/lighthouse-cli
|
|
||||||
- cerc/fixturenet-eth-lighthouse
|
|
||||||
pods:
|
|
||||||
- fixturenet-plugeth
|
|
||||||
@@ -13,7 +13,7 @@ repos:
|
|||||||
- github.com/sushiswap/subgraphs
|
- github.com/sushiswap/subgraphs
|
||||||
containers:
|
containers:
|
||||||
# fixturenet-lotus image
|
# fixturenet-lotus image
|
||||||
- cerc/lotus
|
- cerc/lotus-fixturenet
|
||||||
# graph-node image
|
# graph-node image
|
||||||
- cerc/graph-node
|
- cerc/graph-node
|
||||||
# sushiswap contract deployment images
|
# sushiswap contract deployment images
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# Lotus stack
|
||||||
|
|
||||||
|
## Clone required repositories
|
||||||
|
```
|
||||||
|
$ laconic-so --stack mainnet-lotus setup-repositories
|
||||||
|
```
|
||||||
|
## Build the stack's containers
|
||||||
|
```
|
||||||
|
$ laconic-so --stack mainnet-lotus build-containers
|
||||||
|
```
|
||||||
|
## Create a deployment of the stack
|
||||||
|
```
|
||||||
|
$ laconic-so --stack mainnet-lotus deploy init --map-ports-to-host any-same --output lotus-spec.yml
|
||||||
|
```
|
||||||
|
Update the URLs in the generated spec file to use your systems' actual IP addresses.
|
||||||
|
```
|
||||||
|
$ laconic-so --stack mainnet-lotus deploy create --deployment-dir lotus-deployment --spec-file lotus-spec.yml
|
||||||
|
```
|
||||||
|
## Start the stack
|
||||||
|
```
|
||||||
|
$ laconic-so deployment --dir lotus-deployment start
|
||||||
|
```
|
||||||
|
Check logs:
|
||||||
|
```
|
||||||
|
$ laconic-so deployment --dir lotus-deployment logs
|
||||||
|
```
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
version: "1.0"
|
||||||
|
name: mainnet-lotus
|
||||||
|
description: "A lotus stack"
|
||||||
|
repos:
|
||||||
|
- git.vdb.to/cerc-io/lotus
|
||||||
|
containers:
|
||||||
|
- cerc/mainnet-lotus
|
||||||
|
pods:
|
||||||
|
- mainnet-lotus
|
||||||
@@ -11,7 +11,7 @@ repos:
|
|||||||
- github.com/vulcanize/uniswap-v3-info
|
- github.com/vulcanize/uniswap-v3-info
|
||||||
containers:
|
containers:
|
||||||
## fixturenet-lotus image
|
## fixturenet-lotus image
|
||||||
- cerc/lotus
|
- cerc/lotus-fixturenet
|
||||||
## sushiswap images
|
## sushiswap images
|
||||||
- cerc/sushiswap-v3-core
|
- cerc/sushiswap-v3-core
|
||||||
- cerc/sushiswap-v3-periphery
|
- cerc/sushiswap-v3-periphery
|
||||||
|
|||||||
Reference in New Issue
Block a user