Skip to content

Commit

Permalink
Use ip utility to get the required miner node multiaddr
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 committed Aug 14, 2023
1 parent 18e45af commit 656e67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/data/config/fixturenet-lotus/setup-miner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ echo "Daemon started."
cp /devgen.car /root/.lotus-shared

# publish bootnode peer info to shared volume
# TODO: Improve exporting public address to shared volume
lotus net listen | awk 'NR==4{print}' > /root/.lotus-shared/miner.addr
lotus net listen | grep "$(ip addr | grep inet | grep -v '127.0.0.1' | sort | head -1 | awk '{print $2}' | cut -d '/' -f1)" | head -1 > /root/.lotus-shared/miner.addr

# if miner not already initialized
if [ ! -d $LOTUS_MINER_PATH ]; then
Expand Down
2 changes: 1 addition & 1 deletion app/data/container-build/cerc-lotus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CMD ["-help"]
FROM lotus-base AS lotus-all-in-one

# Install netcat for healthcheck
RUN apt-get update && apt-get install -y netcat
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
Expand Down

0 comments on commit 656e67f

Please sign in to comment.