File size: 1,859 Bytes
974872c | 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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | # ARE 1.1: grading lives in sidecars. Harbor configures `main` (build, limits, network).
services:
main:
depends_on:
grader:
condition: service_healthy
volumes:
- are-deliverable-0:/app/output
grader:
build:
context: ./are-grader-ctx
dockerfile: Dockerfile.are
args:
ARE_ROLE: val
platform: linux/amd64
environment:
ARE_ROLE: val
ARE_PORT: "8000"
ARE_BUDGET_SEC: "86400"
ARE_ARTIFACT_PATHS: "/app/output"
ARE_AGENT_UID: "1001"
ARE_GRADE_TIMEOUT_SEC: "1800"
volumes:
- are-deliverable-0:/run/are-deliverable/app/output
- are-secret:/run/are-secret
expose:
- "8000"
cap_add: [SYS_ADMIN]
networks: [default, are-private]
cpus: 8
mem_limit: 14336m
depends_on:
test-grader:
condition: service_healthy
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health', timeout=2)"]
interval: 2s
timeout: 5s
retries: 60
start_period: 5s
test-grader:
build:
context: ./are-grader-ctx
dockerfile: Dockerfile.are
args:
ARE_ROLE: test
platform: linux/amd64
environment:
ARE_ROLE: test
ARE_PORT: "8001"
ARE_ARTIFACT_PATHS: "/app/output"
ARE_GRADE_TIMEOUT_SEC: "1800"
expose:
- "8001"
volumes:
- are-secret:/run/are-secret
cap_add: [SYS_ADMIN]
networks: [are-private]
cpus: 8
mem_limit: 14336m
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8001/health', timeout=2)"]
interval: 2s
timeout: 5s
retries: 60
start_period: 5s
volumes:
are-deliverable-0: {}
are-secret: {}
networks:
are-private:
internal: true
|