Skip to content

Commit

Permalink
fix: docker-compose (#1626)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillermo Perez <gpmayorga@users.noreply.github.com>
  • Loading branch information
wischli and gpmayorga committed Dec 1, 2023
1 parent 7eaa21f commit 2ba3d5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions docker/docker-compose-local-chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
cc_alice:
profiles:
- default
user: root
container_name: cc-alice
image: "centrifugeio/centrifuge-chain:${CC_DOCKER_TAG:-test-main-latest}"
platform: "linux/x86_64"
Expand All @@ -11,7 +12,7 @@ services:
- "9946:9933"
volumes:
- type: bind
source: ./res/rococo-local.json
source: ../res/rococo-local.json
target: /chainspec.json
read_only: true
command: >
Expand All @@ -26,7 +27,7 @@ services:
--rpc-cors all
--rpc-methods=Unsafe
--log="main,info,xcm=trace,xcm-executor=trace"
--database=auto
--database=rocksdb
--
--wasm-execution=compiled
--execution=wasm
Expand All @@ -45,7 +46,7 @@ services:
- "9946:9944"
volumes:
- type: bind
source: ./res/rococo-local.json
source: ../res/rococo-local.json
target: /chainspec.json
read_only: true
command: >
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose-local-relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- "9944:9933"
volumes:
- type: bind
source: ./res/rococo-local.json
source: ../res/rococo-local.json
target: /chainspec.json
read_only: true
command: >
Expand All @@ -37,7 +37,7 @@ services:
- "9945:9933"
volumes:
- type: bind
source: ./res/rococo-local.json
source: ../res/rococo-local.json
target: /chainspec.json
read_only: true
command: >
Expand Down
10 changes: 5 additions & 5 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ install-toolchain)

start-relay-chain)
echo "Starting local relay chain with Alice and Bob..."
docker-compose -f ./docker-compose-local-relay.yml up --remove-orphans -d
docker-compose -f ./docker/docker-compose-local-relay.yml up --remove-orphans -d
;;

stop-relay-chain)
echo "Stopping relay chain..."
docker-compose -f ./docker-compose-local-relay.yml down
docker-compose -f ./docker/docker-compose-local-relay.yml down
;;

start-parachain-docker)
echo "Starting local parachain with Alice..."
docker-compose -f ./docker-compose-local-chain.yml --profile=$cc_docker_profile up -d
docker-compose -f ./docker/docker-compose-local-chain.yml --profile=$cc_docker_profile up -d
;;

stop-parachain-docker)
echo "Stopping local parachain with Alice..."
docker-compose -f ./docker-compose-local-chain.yml --profile=$cc_docker_profile down
docker-compose -f ./docker/docker-compose-local-chain.yml --profile=$cc_docker_profile down
;;

start-parachain)
Expand Down Expand Up @@ -64,7 +64,7 @@ start-parachain)
--rpc-cors all \
--rpc-methods=Unsafe \
--log="main,info" \
--database=auto
--database=rocksdb
;;

onboard-parachain)
Expand Down

0 comments on commit 2ba3d5a

Please sign in to comment.