add_judger.sql 689 B

1234567891011121314
  1. USE `app_uoj233`;
  2. -- Registers the compose judger. Upsert, so re-running is harmless, and
  3. -- ./judger/register-judger.sh can be used later to change the password/ip
  4. -- without rebuilding this image.
  5. --
  6. -- judger_name must match JUDGER_NAME in docker-compose.yml, and ip must be
  7. -- reachable from the web container (`uoj-judger` is the compose service name)
  8. -- because /judge/sync-judge-client dials it on judger.socket.port.
  9. --
  10. -- _judger_password_ is a placeholder published in this repository: change it.
  11. insert into judger_info (judger_name, password, ip)
  12. values ('main_judger', '_judger_password_', 'uoj-judger')
  13. on duplicate key update password = values(password), ip = values(ip);