Mount /root to simapp_data on chain start

This commit is contained in:
Simon Warta
2020-08-02 20:44:06 +02:00
parent aa31b6c870
commit 4ece47e0e0
6 changed files with 13 additions and 7 deletions
+6 -2
View File
@@ -15,12 +15,16 @@ echo "Using temporary dir $TMP_DIR"
SIMD_LOGFILE="$TMP_DIR/simd.log"
PORT=26657
# Use a fresh volume for every start
docker volume rm -f simapp_data
docker run --rm \
--name "$CONTAINER_NAME" \
-p "$PORT:$PORT" \
--mount type=bind,source="$SCRIPT_DIR/template",target=/root \
--mount type=bind,source="$SCRIPT_DIR/template",target=/template \
--mount type=volume,source=simapp_data,target=/root \
"$REPOSITORY:$VERSION" \
./run_simd.sh \
/template/run_simd.sh \
> "$SIMD_LOGFILE" &
echo "simd running on http://localhost:$PORT and logging into $SIMD_LOGFILE"