From 6d47bcba54264d472ad56437ab5c619f73dc8870 Mon Sep 17 00:00:00 2001 From: "jonathan@vulcanize.io" Date: Fri, 26 Apr 2024 15:03:57 +0000 Subject: [PATCH 1/2] adding auto-accept to docker entrypointt snapshot import --- scripts/docker-lotus-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/docker-lotus-entrypoint.sh b/scripts/docker-lotus-entrypoint.sh index de1dfbcc8..fe23bcf65 100755 --- a/scripts/docker-lotus-entrypoint.sh +++ b/scripts/docker-lotus-entrypoint.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash - +echo "WTF IN SH $DOCKER_LOTUS_IMPORT_SNAPSHOT" if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then GATE="$LOTUS_PATH"/date_initialized # 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 From fdb1108154e4e58d7972eb70ec6434980a0693a1 Mon Sep 17 00:00:00 2001 From: "jonathan@vulcanize.io" Date: Fri, 26 Apr 2024 15:05:44 +0000 Subject: [PATCH 2/2] remove debug --- scripts/docker-lotus-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker-lotus-entrypoint.sh b/scripts/docker-lotus-entrypoint.sh index fe23bcf65..ed405da0c 100755 --- a/scripts/docker-lotus-entrypoint.sh +++ b/scripts/docker-lotus-entrypoint.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -echo "WTF IN SH $DOCKER_LOTUS_IMPORT_SNAPSHOT" + if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then GATE="$LOTUS_PATH"/date_initialized # Don't init if already initialized.