Commit Graph

31 Commits

Author SHA1 Message Date
ecf470bddd Refactor sync_environment methods
* Add delete_environment method
* Change return value to allow raising an exception
2021-11-04 20:06:40 +01:00
38e1f5b486 Show error details of available_images 2021-11-04 20:06:40 +01:00
447860892a Always remove exposed_ports_list if present 2021-11-01 17:13:13 +01:00
1609bd2e0e Change default of raise_exception for execute_command 2021-11-01 17:13:11 +01:00
2b98905acb Remove usage of DockerClient from execution_environments_controller.rb 2021-11-01 17:13:07 +01:00
d87e23b9a3 Add execute_command method to runner.rb
* This is now used by the score and test runs
* This also re-enables the interactive shell for execution environments
2021-11-01 17:13:05 +01:00
06ef4430f5 Change exposed_ports to array 2021-11-01 17:13:02 +01:00
30603cb7ab Generalize method and constant names for runner management 2021-11-01 17:12:53 +01:00
598de3bcff Add button to synchronize all execution environments
This adds a button to the execution environment index page that, when
clicked, causes all execution environments to be synchronized to the
runner management (Poseidon) by creating or replacing them.

CodeOcean does not synchronize it's execution environments on startup or
when a new runner management configuration is used for the first time.
The administrator has to manually start this process by pressing this
button.

The equivalent for syncing just one execution environment is updating
it.
2021-11-01 17:12:49 +01:00
90fac7b94c Copy execution environment to Poseidon on create and update
When creating or updating an execution environment, an API call to
Poseidon is made with the necessary information to create the
corresponding Nomad job.

If runner management is configured, his will display a warning
(currently in the same color as if it were a success) in the UI, if the
API call fails. The environment is saved even if it fails.
If runner management is not configured, this warning will not be created.
2021-11-01 17:12:48 +01:00
72e4026d6c Ensure that the current docker image is listed when editing an execution environment 2021-07-07 20:19:45 +02:00
5243808d54 Apply automatic rubocop fixes 2021-05-17 19:40:38 +02:00
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
b10e23dd16 Upgrade to newest Sentry 2021-03-04 14:02:16 +01:00
74d99df070 Add JavaScript sentry 2020-03-05 10:30:57 +01:00
114f77e799 Extract WORKING_TIME_DELTA to be used globally and set it to 5 min. 2019-03-09 00:32:36 +01:00
de52db89f0 Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:00 +01:00
5a099a42b8 changed working time calculation to only consider submissions within 5 minutes instead of 30 2017-04-03 18:09:30 +02:00
5b8f710196 added standard deviations 2016-01-11 19:00:53 +01:00
a508d47e3e Retrieve user statistics in an execution environment for all exercises at once 2016-01-07 15:42:53 +01:00
943e3c6c3a reworked execution_environment statistics 2016-01-07 13:19:02 +01:00
78422647fe Add execution environment statistics 2015-10-29 14:19:31 +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
acf03b1f51 added pagination for all resources 2015-03-11 16:13:45 +01:00
a06e20b6c5 use eager loading to reduce the number of database queries 2015-03-11 14:24:24 +01:00
3ae749bfc5 extended execution environments by a default file type that is used as the default for associated exercises' files 2015-03-10 18:14:26 +01:00
a13d1738e2 fixed multiple style guide violations 2015-02-17 10:23:01 +01:00
5f0815b140 implemented pooling for Docker containers 2015-02-06 15:59:51 +01:00
a22a5af711 extracted common controller behavior in order to reduce code duplication 2015-02-05 12:28:09 +01:00
4cbf9970b1 transferred Code Ocean from original repository to GitHub 2015-01-22 10:01:32 +01:00