Avoid collission on data volumes
This commit is contained in:
@@ -13,7 +13,7 @@ HOME_DIR="/root"
|
|||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-it \
|
-it \
|
||||||
--mount type=volume,source=wasmcli_data,target=/root/.wasmcli \
|
--mount type=volume,source=launchpad_cli_data,target=/root/.wasmcli \
|
||||||
-w "$HOME_DIR" \
|
-w "$HOME_DIR" \
|
||||||
--env "HOME=$HOME_DIR" \
|
--env "HOME=$HOME_DIR" \
|
||||||
--net "container:$CONTAINER_NAME" \
|
--net "container:$CONTAINER_NAME" \
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ WASMD_LOGFILE="$TMP_DIR/wasmd.log"
|
|||||||
REST_SERVER_LOGFILE="$TMP_DIR/rest-server.log"
|
REST_SERVER_LOGFILE="$TMP_DIR/rest-server.log"
|
||||||
|
|
||||||
# Use a fresh volume for every start
|
# Use a fresh volume for every start
|
||||||
docker volume rm -f wasmd_data
|
docker volume rm -f launchpad_data
|
||||||
|
|
||||||
# This starts up wasmd
|
# This starts up wasmd
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--name "$CONTAINER_NAME" \
|
--name "$CONTAINER_NAME" \
|
||||||
-p "$LCD_API_PORT_HOST":"$LCD_API_PORT_GUEST" \
|
-p "$LCD_API_PORT_HOST":"$LCD_API_PORT_GUEST" \
|
||||||
--mount type=bind,source="$SCRIPT_DIR/template",target=/template \
|
--mount type=bind,source="$SCRIPT_DIR/template",target=/template \
|
||||||
--mount type=volume,source=wasmd_data,target=/root \
|
--mount type=volume,source=launchpad_data,target=/root \
|
||||||
"$REPOSITORY:$VERSION" \
|
"$REPOSITORY:$VERSION" \
|
||||||
./run_wasmd.sh /template \
|
./run_wasmd.sh /template \
|
||||||
> "$WASMD_LOGFILE" &
|
> "$WASMD_LOGFILE" &
|
||||||
|
|||||||
Reference in New Issue
Block a user