Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add more language support, such as Ruby #149

Closed
merlinv opened this issue May 15, 2018 · 4 comments
Closed

How to add more language support, such as Ruby #149

merlinv opened this issue May 15, 2018 · 4 comments

Comments

@merlinv
Copy link

merlinv commented May 15, 2018

Beside of C, C++, Java, ... I want to add more language support such as Ruby or Javascript
Could you please tell me how to do that ? what module should I change or update?

@virusdefender
Copy link
Contributor

https://github.com/QingdaoU/OnlineJudge/blob/master/judge/languages.py

For test environment, you can set seccomp_rule= None

@merlinv
Copy link
Author

merlinv commented May 15, 2018

@virusdefender how does it works with OnlineJudgeDeploy ?
Actually I want to modify some features and run it on my local.

@virusdefender
Copy link
Contributor

  • Add a volume in docker-compose.yml, for example $PWD/OnlineJudge:/app to override the source code in the container
  • Run backend server in your local machine, it's written by Django, you can use python manage.py runserver

@eagle705
Copy link

eagle705 commented May 17, 2018

In addition,
[1] you should add a compiler(e.g Ruby??) to your judge_server.
[2] modify https://github.com/QingdaoU/OnlineJudge/blob/master/judge/languages.py
then, it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants