File size: 1,376 Bytes
784ee2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
  # Ray Head Node (Server)
  ray-head:
    image: openroad/orfs:${ORFS_VERSION}
    container_name: ray-head
    command: >
      cd /OpenROAD-flow-scripts
      pip install -r ./tools/AutoTuner/requirements.txt
      ray start --head --dashboard-port=8265 --port=6379 --dashboard-host=0.0.0.0 --block
    volumes:
      - ../../flow:/OpenROAD-flow-scripts/flow
      - ../../tools/AutoTuner:/OpenROAD-flow-scripts/tools/AutoTuner
      - ~/.local/shared-data/autotuner:/shared-data/autotuner
    ports:
      - "6379:6379" # redis
      - "8265:8265" # dashboard
      - "10001-10010:10001-10010" # ray ports
    healthcheck:
      test: ["CMD-SHELL", "pgrep -f 'ray::' || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 5
      start_period: 10s

  # Ray Worker Node
  ray-worker:
    image: openroad/orfs:${ORFS_VERSION}
    container_name: ray-worker
    command: >
      cd /OpenROAD-flow-scripts
      pip install -r ./tools/AutoTuner/requirements.txt
      ray start --address=ray-head:10001 --block
    volumes:
      - ../../flow:/OpenROAD-flow-scripts/flow
      - ../../tools/AutoTuner:/OpenROAD-flow-scripts/tools/AutoTuner
      - ~/.local/shared-data/autotuner:/shared-data/autotuner
    healthcheck:
      test: ["CMD-SHELL", "pgrep -f 'ray::' || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 5
      start_period: 10s