Giter Club home page Giter Club logo

vj4-docker's Introduction

Replaced By VJ4!

Repository Obsoleted

Why? We found that we were using PHP(the best language) as languages like Java in this project, which made us unhappy(but PM said that he was happy). Too long, too slow, not elegant.

Good News!

We are developing a totally new version of OpenVJ, written in Python, significantly reduced the code size while keeping high performance thanks to the new async feature provided by Python. It will provide similar functionalities as planned in OpenVJ (at least SaaS). It will be released under open source license to replace this repository soon. Keep an eye on it :-)

OpenVJ

Build Status Code Climate Coverage Status

Dependency Status Dependency Status

OpenVJ is a next-generation open-source online judge (OJ) system. It is developed and maintained by Vijos, supported by:

  • High School Attached to Hunan Normal University
  • Beijing NO.80 High School
  • Shanghai Tongji University

Important Notice

The project is still under developing. DO NOT TRY TO DEPLOY IT.

Requirement

  • Linux / OS X
  • PHP >= 5.6
  • php-mongo
  • php-redis
  • php-mcrypt
  • MongoDB >= 3
  • Redis
  • Composer

License

GNU Affero General Public License (AGPL) V3

vj4-docker's People

Contributors

chenhongqiao avatar moesoha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vj4-docker's Issues

Some problem when I install

Problem

  1. My submition of problem is always Waiting
  2. When regist, click "Send Verification Email" cause 500 Error

My configration

I set up the server all by default

This is the part o my configration

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c33d8879f642 vijos/jd4 "/bin/sh -c 'bash -c…" 4 minutes ago Up 7 seconds vj4_judge_1
2f12278d0c13 vijos/vj4 "python3 docker-entr…" 20 minutes ago Up 20 minutes 0.0.0.0:8888->8888/tcp vj4_web_1
4a6813d4074a rabbitmq:latest "docker-entrypoint.s…" 24 minutes ago Up 24 minutes 4369/tcp, 5671-5672/tcp, 25672/tcp vj4_rabbitmq_1
58f8b1c40e26 mongo:latest "docker-entrypoint.s…" 24 minutes ago Up 24 minutes 27017/tcp vj4_mongodb_1

$ cat ./data/judge/config.yaml
server_url: http://127.0.0.1:8888/
uname: judger
password: 123456

模板下载不下来

已解决

直接通过网址访问这个文件可以复制

文件很小,建议直接写在md里复制好了,不需要wget

Failed to get repository: InvalidGitRepositoryError('/app',)

I'm just following the tutorial in the README.md

when I run

drpm vj4.model.user set_judge -2

I have this

Creating network "vj4-docker_default" with the default driver
Creating vj4-docker_rabbitmq_1 ... done
Creating vj4-docker_mongodb_1  ... done
Failed to get repository: InvalidGitRepositoryError('/app',)

Help Wanted

image
Followed the instructions.
Testcase uploaded.
Why it's always waiting?

Failed to get repository: InvalidGitRepositoryError('/app',)

Failed to get repository: InvalidGitRepositoryError('/app',)
log:
vj4-docker-web-1 | Failed to get repository: InvalidGitRepositoryError('/app',)
vj4-docker-web-1 | Traceback (most recent call last):
vj4-docker-web-1 | File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
vj4-docker-web-1 | "main", mod_spec)
vj4-docker-web-1 | File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
vj4-docker-web-1 | exec(code, run_globals)
vj4-docker-web-1 | File "/app/vj4/server.py", line 67, in
vj4-docker-web-1 | sys.exit(main())
vj4-docker-web-1 | File "/app/vj4/server.py", line 64, in main
vj4-docker-web-1 | web.run_app(app.Application(), sock=sock, access_log=None, shutdown_timeout=0)
vj4-docker-web-1 | File "/app/vj4/app.py", line 82, in init
vj4-docker-web-1 | loop.run_until_complete(system.setup())
vj4-docker-web-1 | File "/usr/local/lib/python3.6/asyncio/base_events.py", line 488, in run_until_complete
vj4-docker-web-1 | return future.result()
vj4-docker-web-1 | File "/app/vj4/model/system.py", line 123, in setup
vj4-docker-web-1 | fdoc = await coll.find_one({'_id': 'user_counter'})
vj4-docker-web-1 | File "/usr/local/lib/python3.6/site-packages/aiomongo/collection.py", line 502, in find_one
vj4-docker-web-1 | async for item in result_cursor:
vj4-docker-web-1 | File "/usr/local/lib/python3.6/site-packages/aiomongo/cursor.py", line 199, in anext
vj4-docker-web-1 | is_refereshed = await self._refresh()
vj4-docker-web-1 | File "/usr/local/lib/python3.6/site-packages/aiomongo/cursor.py", line 260, in _refresh
vj4-docker-web-1 | helpers._check_command_response(doc['data'][0])
vj4-docker-web-1 | File "/usr/local/lib/python3.6/site-packages/pymongo/helpers.py", line 210, in _check_command_response
vj4-docker-web-1 | raise OperationFailure(msg % errmsg, code, response)
vj4-docker-web-1 | pymongo.errors.OperationFailure: Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal

Server response 500 ERROR

I use docker to pull images
it's all rights in pulling,but when i access https://mywebsite:8888
server response 500 error
how can i solve it?
1
`git clone git://github.com/vijos/vj4-docker.git

Cloning into 'vj4-docker'...

remote: Enumerating objects: 98, done.

remote: Counting objects: 100% (9/9), done.

remote: Compressing objects: 100% (9/9), done.

remote: Total 98 (delta 3), reused 0 (delta 0), pack-reused 89

Receiving objects: 100% (98/98), 28.21 KiB | 0 bytes/s, done.

Resolving deltas: 100% (50/50), done.

[root@VM-0-14-centos ~]# cd vj4-docker

[root@VM-0-14-centos vj4-docker]# cp .env.example .env
[root@VM-0-14-centos vj4-docker]# docker-compose up -d

Creating network "vj4-docker_default" with the default driver

Pulling rabbitmq (rabbitmq:latest)...

latest: Pulling from library/rabbitmq

16ec32c2132b: Already exists

3adbc39b91c4: Pull complete

e8b69dd838f7: Pull complete

c9104876e567: Pull complete

048896cf9ed8: Pull complete

b6c0ddc66feb: Pull complete

0b73ecf3c545: Pull complete

e0797741356a: Pull complete

0cdd82cb58d7: Pull complete

Digest: sha256:c27d5915d1ddad12ac905c78f467c6280f4c807e87ec69c3298fa8a90b2d9a26

Status: Downloaded newer image for rabbitmq:latest

Pulling web (vijos/vj4:)...

latest: Pulling from vijos/vj4

df20fa9351a1: Pull complete

36b3adc4ff6f: Pull complete

98eb400f742f: Pull complete

31cc876ef68f: Pull complete

badfb14c62c0: Pull complete

80008f9fad11: Pull complete

963b4525d8d2: Pull complete

8ec7d019e717: Pull complete

61f2bbd4597d: Pull complete

Digest: sha256:e391eea74cc44e8e9d6a4397f868082531bef4f4ab99914293b1d019aa93af95

Status: Downloaded newer image for vijos/vj4:latest

Creating vj4-docker_rabbitmq_1 ... done

Creating vj4-docker_mongodb_1 ... done

Creating vj4-docker_web_1 ... done

[root@VM-0-14-centos vj4-docker]# docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES

68b0706fdcc8 vijos/vj4 "python docker-entry…" 2 minutes ago Up 2 minutes 0.0.0.0:8888->8888/tcp, :::8888-

8888/tcp vj4-docker_web_1

75a8db9891a6 mongo:latest "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 27017/tcp

vj4-docker_mongodb_1
b9fd9c41a10e rabbitmq:latest "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 4369/tcp, 5671-5672/tcp, 15691-

15692/tcp, 25672/tcp vj4-docker_rabbitmq_1
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.