Skip to content

Environment variable to define the judge key using a file #1211

@osmanirosado

Description

@osmanirosado

Include the environment variable DMOJ_JUDGE_KEY_PATH to define the path of a file with the judge key.

Compose file as example:

services:
  judge:
    image: dmoj/judge-tier3:latest
    command: ["run", "$BRIDGE_ADDRESS"]
    environment:
      DMOJ_JUDGE_NAME: "$JUDGE_NAME"
      DMOJ_JUDGE_KEY_PATH: /run/secrets/judge_key
    secrets:
      - judge_key
    volumes:
      - "$PROBLEMS_DIR:/problems:ro"
    cap_add:
      - SYS_PTRACE
    restart: unless-stopped

secrets:
  judge_key:
    file: 'judge_key.txt'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions