Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 1.43 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.43 KB

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