Commit Graph

58 Commits

Author SHA1 Message Date
f5339e4664 Renamed tests, fix default 2015-04-28 11:40:49 +02:00
89c851b24f Clean Up Dir.. 2015-04-28 11:14:33 +02:00
fd3d489bd4 prevent multiple files with same name to crash the file tree 2015-04-27 11:57:24 +02:00
793160cf6f prevent NaNs in scoring 2015-04-27 10:38:12 +02:00
74dacbee3d Merge pull request #17 from franzliedke/patch-1
Clean up after debugging session
2015-04-23 13:17:29 +02:00
7296ccda33 Cleanup 2015-04-23 13:12:44 +02:00
480d6490f5 Clean up Docker client class. 2015-04-23 13:09:02 +02:00
a5d5dde7a8 Debugging 2015-04-23 12:58:21 +02:00
40f37410ac Fix logged 2015-04-23 10:04:17 +02:00
431b18b526 Added some logs 2015-04-23 09:54:30 +02:00
edbf74b4b9 Only return container if its not there already 2015-04-23 08:59:30 +02:00
d610155dbc access class wide variable 2015-04-22 17:46:10 +02:00
e515afe619 updated container handling. hopefully removed potential error source. 2015-04-22 15:00:01 +02:00
a7087824b1 added a null check, removed setting status to used due to test problems, fixed mocking of container object. 2015-04-22 11:38:07 +02:00
e448e403ba restart containers if they are running for more than 15 minutes (900 seconds) 2015-04-21 18:28:34 +02:00
635900b3cc Restart container on timeout 2015-04-15 19:54:15 +02:00
940eee5856 Show warning if all containers are depleted. 2015-04-15 17:17:39 +02:00
48c9bbcea5 Changed the way we empty the working dir after continaer is returnned in pool 2015-04-15 08:17:26 +02:00
69bac3fe20 Avoid utf-8 trouble 2015-04-14 20:26:43 +02:00
95923a137e Do not create more containers as the pool count 2015-04-14 20:23:41 +02:00
9d7cb92931 Merge branch 'master' of https://github.com/openHPI/codeocean
Conflicts:
	lib/docker_client.rb
2015-04-14 20:19:12 +02:00
366f2b8ef0 backup 2015-04-14 20:17:36 +02:00
b46055eca3 added option to recycle Docker containers 2015-04-14 19:59:11 +02:00
7f7e538af2 Added comment to explain commented stuff 2015-04-14 19:49:46 +02:00
9187596f18 Do not create container if pooling is on and all containers are gone 2015-04-14 19:47:01 +02:00
91ac7e8e37 debugging 2015-04-14 17:10:05 +02:00
0b7ae86a69 debugging 2015-04-14 16:54:23 +02:00
a410696438 debugging 2015-04-14 16:53:56 +02:00
168df58cc7 debugging 2015-04-14 16:45:56 +02:00
c0fde51f6c Backup commit 2015-04-13 22:36:27 +02:00
172ca91329 bugfixes, policies, errors now have a link to the submissions 2015-04-10 20:23:38 +02:00
5bb4f192c0 fixed markup of flash messages 2015-03-27 09:33:00 +01:00
ba3476cfec some refactoring 2015-03-19 14:33:51 +01:00
d109663cb9 extracted boolean validation logic into stand-alone validator 2015-03-18 09:10:58 +01:00
15d8984a9e added the ability to prohibit network access for code submissions executed using Docker 2015-03-17 17:14:25 +01:00
b1218e0b80 added the ability to limit memory consumption of code submissions executed using Docker 2015-03-17 15:51:59 +01:00
8c6490c9f7 improved the Docker client's robustness regarding random errors 2015-03-16 16:23:52 +01:00
c260d4f2ea fixed absent initiation of refill task 2015-03-14 14:34:38 +01:00
a8bda864df simplified some Active Record queries 2015-03-11 14:31:19 +01:00
7e1c03ba2f guess module name from filename when executing a submission 2015-03-09 18:02:45 +01:00
03486bff35 minor change 2015-03-02 09:41:31 +01:00
1268cdf7aa improved readability 2015-02-23 08:45:10 +01:00
4a6e6eb5e6 refactored refill of Docker container pool 2015-02-20 14:59:51 +01:00
6b44e737ab fix 2015-02-20 09:35:56 +01:00
a13d1738e2 fixed multiple style guide violations 2015-02-17 10:23:01 +01:00
c99b0e6256 use #fail instead of #raise to signal exceptions, as suggested by RuboCop 2015-02-17 09:05:04 +01:00
e8db4a4b10 removed code duplication 2015-02-12 13:15:31 +01:00
1226eb9d24 refill Docker container pool in small batches 2015-02-11 15:48:06 +01:00
6b73fc7b30 create a container's specific directory before starting the container 2015-02-11 10:04:21 +01:00
f6badb44ed only remove Docker resources if present 2015-02-07 10:29:44 +01:00