Comments (12)
这个要手动部署,可以把安装的内容写在requirements.txt里
from lpoj.
能给个简单的instruction么?添加到哪个requirements.txt, 添加完之后如何重新部署?
from lpoj.
加到这里https://github.com/Linzecong/LPOJ/blob/master/Judger/requirements.txt
重新部署在这里https://github.com/Linzecong/LPOJ#%E8%87%AA%E5%AE%9A%E4%B9%89oj
from lpoj.
多谢,但是似乎加进去之后依然是runtime error.
from lpoj.
可以进到docker里看看log,看看是报什么错
from lpoj.
@Linzecong 你是指用docker logs命令么,似乎没有什么有用的信息。
from lpoj.
进去docker后,查看error信息如下:
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 8: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 200 current, 200 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 8: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 200 current, 200 max
OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 8: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 200 current, 200 max
OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 8: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 200 current, 200 max
OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 8: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 200 current, 200 max
OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 8: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 200 current, 200 max
from lpoj.
我知道了……因为判题机是运行在沙盒里的,沙盒为了安全有很多限制,不允许调用一些系统函数,numpy用了很多其他的一些系统函数,所以报错了。。。。
from lpoj.
@Linzecong 有什么办法可以解决么?
from lpoj.
自己改jugder,去掉沙盒,然后在judger里装numpy就好了。
from lpoj.
清问在哪里去掉沙盒? 在judger里装numpy就还是之前直接在requirements.txt加上numpy就行了吧。
from lpoj.
清问在哪里去掉沙盒? 在judger里装numpy就还是之前直接在requirements.txt加上numpy就行了吧。
这个得自己改源码,自己写编译和运行。在我很久之前的代码,是没有用沙盒的……有点难找了
from lpoj.
Related Issues (20)
- 想请问下在测评机judge上$proc_args = ["/usr/lib/judger/libjudger.so"]$,这个so文件评测的原理是什么? HOT 1
- docker一键部署,不能成功OJ
- 请问judge跑在python3.6的环境下会出错吗
- tag和problem对应关系 HOT 2
- 高并发优化 HOT 1
- 网络优化
- 比赛结束判断改为在后端
- 判题机和判题服务器改用ZMQ HOT 1
- contest和admin改用二级路由
- 优化judgestatus查询
- 博客爬虫数据泄露用户真实姓名 HOT 3
- dockerfile优化减小体积,element模块改成按需引入,分路由引入
- 本地ip地址获取优化
- 无法注册 HOT 1
- 程序调用测试程序支持 HOT 4
- 算法考试bug HOT 2
- Problem描述页面BUG HOT 7
- 500内部服务器错误,管理员 HOT 2
- 错误:正在拉数据库(ccr.ccs.tencentyun.com/lpoj/database:)... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lpoj.