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

仅含Judger本体的Dockerfile? #13

Closed
Ray-Eldath opened this issue Jul 7, 2017 · 3 comments
Closed

仅含Judger本体的Dockerfile? #13

Ray-Eldath opened this issue Jul 7, 2017 · 3 comments

Comments

@Ray-Eldath
Copy link

是否有一个仅含Judger本体、可以通过_judger.run(...)(Python)语句直接调用Judger的Docker呢?

(我用自己编译的Judger执行这里的Python demo得到的echo.out文件是空的...而且每次把Windows下写的.py文件传到Linux服务器上调试感觉很不方便= =因此问一下有没有现成的;而现有的docker-compose中的judger是server,不能“直接调用”)

@virusdefender
Copy link
Contributor

不好意思,才看到。

docker run -it --rm registry.cn-hangzhou.aliyuncs.com/v-image/judge_server /bin/bash

可以试试这个。

目前 deploy 中的 Judger 还是旧版的。

@virusdefender
Copy link
Contributor

然后我新增了一个 demo 文件夹,如果你要自己修改代码编译的话,还可以增加-v $PWD:/code参数,直接把外边的代码映射进去。

@Ray-Eldath
Copy link
Author

感谢!
已经解决。

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

2 participants