File size: 1,389 Bytes
7ec48b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
44
name: ${T39_PROJECT:-t39-rct-onetile}
services:
  game:
    platform: linux/amd64
    image: t39-rct-onetile:v1
    command: []
    environment:
      ONETILE_ASSETS_MOUNTED: "1"
      # This task's objective. The image is shared with the 1,000-guest variant,
      # which sets its own; the controller compiles this into the scenario and the
      # grader checks every piece of evidence against it.
      T39_TARGET_GUESTS: "200"
    build:
      context: ./environment
      dockerfile: Dockerfile
      args:
        # Also baked into the image: the Daytona snapshot boots without this
        # compose file, so the target has to travel inside the image too.
        T39_TARGET_GUESTS: "200"
    ports:
      - "127.0.0.1:${WEB_PORT:-6087}:6080"
    volumes:
      - type: bind
        source: ${RCT2_ASSETS:?Set RCT2_ASSETS or use scripts/docker.sh}
        target: /opt/rct2-assets
        read_only: true
        bind:
          create_host_path: false
      - game-data:/home/rct2/.config/OpenRCT2
      - ${T39_ARTIFACTS:-./artifacts}:/artifacts
      - ${T39_ARTIFACTS:-./artifacts}/logs:/logs
    tmpfs:
      - /tmp:size=536870912,mode=1777
    shm_size: 512mb
    stop_grace_period: 15s
    healthcheck:
      test: ["CMD", "curl", "-fsS", "http://127.0.0.1:6080/vnc.html"]
      interval: 10s
      timeout: 3s
      retries: 6
      start_period: 30s
volumes:
  game-data: