TIOJ-INFOR-Online-Judge / tioj-docker

Dockerized TIOJ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TIOJ Docker

This repo is archived since it has been merged into the main TIOJ repo.

Introduction

This is a dockerized version of TIOJ, it will clone the latest TIOJ repo and miku repo to build a TIOJ.

Notice

  1. This uses a standalone passenger instead of nginx as default server.
  2. miku is running in privileged mode of docker.

Installation guide

  1. clone this repo by doing git clone https://github.com/TIOJ-INFOR-Online-Judge/tioj-docker.
  2. configure MYSQL_ROOT_PASSWORD, TOKEN, and KEY in .env carefully.
  3. run docker-compose build to build docker images.
  4. run docker-compose up -d to enjoy TIOJ at port 7122.

To build in mode other than production, please change L12, L23, L25 in docker-compose.yml.

Judge Management & Other

Please refer to https://github.com/TIOJ-INFOR-Online-Judge/tioj or open an issue here for more detail.

Also, Pull Request is welcomed.

TODO

  • Reduce image size by using alpine in miku
  • Reduce image size by minimizing dependencies
  • Run miku without privileged
  • Make mode change more easily in tioj

About

Dockerized TIOJ


Languages

Language:Dockerfile 82.8%Language:Shell 17.2%