https://github.com/pushyzheng/go-docker-judger
An online judge server by Go and Docker
https://github.com/pushyzheng/go-docker-judger
docker go golang oj
Last synced: about 1 month ago
JSON representation
An online judge server by Go and Docker
- Host: GitHub
- URL: https://github.com/pushyzheng/go-docker-judger
- Owner: pushyzheng
- License: apache-2.0
- Created: 2019-06-19T09:29:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T09:47:22.000Z (about 5 years ago)
- Last Synced: 2025-12-29T00:10:00.482Z (5 months ago)
- Topics: docker, go, golang, oj
- Language: Go
- Homepage:
- Size: 56.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-docker-judger
## Introduction
An OJ judger server by docker and golang, now this project is developing.
if you are interested in it, you can contract with me by email:
- 1437876073@qq.com
- pushy.zhengzuqin@gmail.com
## Usage
Firstly, you need build image from docker directory:
```shell
$ docker image build -t pushyzheng/go-docker-judger .
```
Then run following command to start container, the output will show judgement result:
```shell
$ docker run -v "e:/usr/pushy":/usr/src/oj/code -v "e:/usr/cases":/usr/src/oj/cases pushyzheng/go-docker-judger
```
But your computer must exists `Main.java` in `e:/usr/pushy`, if don't have this path, you can change it in top command.
In addition, you can put case file to `/e:/usr/cases`, the form of test case file as following:
```
1
2
3
```