This repo is archived since it has been merged into the main TIOJ repo.
This is a dockerized version of TIOJ, it will clone the latest TIOJ repo and miku repo to build a TIOJ.
- This uses a standalone passenger instead of nginx as default server.
- miku is running in privileged mode of docker.
- clone this repo by doing
git clone https://github.com/TIOJ-INFOR-Online-Judge/tioj-docker
. - configure
MYSQL_ROOT_PASSWORD
,TOKEN
, andKEY
in.env
carefully. - run
docker-compose build
to build docker images. - 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
.
Please refer to https://github.com/TIOJ-INFOR-Online-Judge/tioj or open an issue here for more detail.
Also, Pull Request is welcomed.
- 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