Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Oct 31, 2024
1 parent d8621ec commit da510c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
22 changes: 5 additions & 17 deletions scripts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- ${PROOF_OUTPUT_DIR}:/proofs/:rw
- ${LEADER_INPUT_JSON_FILE}:/witness:ro

worker-1:
worker:
build:
context: ../
dockerfile: Dockerfile
Expand All @@ -29,22 +29,10 @@ services:
- ZK_EVM_CACHE_DIR=/zk_evm_circuit_cache
command: worker
volumes:
- ${DOCKER_CIRCUITS_CACHE_DIR}/worker1:/zk_evm_circuit_cache:rw

worker-2:
build:
context: ../
dockerfile: Dockerfile
depends_on:
rabbitmq:
condition: service_healthy
environment:
- RUST_LOG=info
- AMQP_URI=amqp://rabbitmq:5672
- ZK_EVM_CACHE_DIR=/zk_evm_circuit_cache
command: worker
volumes:
- ${DOCKER_CIRCUITS_CACHE_DIR}/worker2:/zk_evm_circuit_cache:rw
- ${DOCKER_CIRCUITS_CACHE_DIR}/worker:/zk_evm_circuit_cache:rw
deploy:
mode: replicated
replicas: 2

rabbitmq:
image: rabbitmq:3-management
Expand Down
4 changes: 1 addition & 3 deletions scripts/prove_stdio_docker_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ mkdir -p "$PROOF_OUTPUT_DIR"
chmod 777 "$PROOF_OUTPUT_DIR"

export DOCKER_CIRCUITS_CACHE_DIR="./docker_circuit_cache"
mkdir -p --mode=777 "$DOCKER_CIRCUITS_CACHE_DIR"
mkdir -p --mode=777 "$DOCKER_CIRCUITS_CACHE_DIR/worker1"
mkdir -p --mode=777 "$DOCKER_CIRCUITS_CACHE_DIR/worker2"
mkdir -p --mode=777 "$DOCKER_CIRCUITS_CACHE_DIR/worker"

docker compose up

0 comments on commit da510c0

Please sign in to comment.