mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Avoid collission on data volumes
This commit is contained in:
parent
255fc2c0ed
commit
e99d8401b2
@ -13,7 +13,7 @@ HOME_DIR="/root"
|
||||
docker run \
|
||||
--rm \
|
||||
-it \
|
||||
--mount type=volume,source=wasmcli_data,target=/root/.wasmcli \
|
||||
--mount type=volume,source=launchpad_cli_data,target=/root/.wasmcli \
|
||||
-w "$HOME_DIR" \
|
||||
--env "HOME=$HOME_DIR" \
|
||||
--net "container:$CONTAINER_NAME" \
|
||||
|
@ -19,14 +19,14 @@ WASMD_LOGFILE="$TMP_DIR/wasmd.log"
|
||||
REST_SERVER_LOGFILE="$TMP_DIR/rest-server.log"
|
||||
|
||||
# Use a fresh volume for every start
|
||||
docker volume rm -f wasmd_data
|
||||
docker volume rm -f launchpad_data
|
||||
|
||||
# This starts up wasmd
|
||||
docker run --rm \
|
||||
--name "$CONTAINER_NAME" \
|
||||
-p "$LCD_API_PORT_HOST":"$LCD_API_PORT_GUEST" \
|
||||
--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" \
|
||||
./run_wasmd.sh /template \
|
||||
> "$WASMD_LOGFILE" &
|
||||
|
Loading…
x
Reference in New Issue
Block a user