
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.
15 lines
1.1 KiB
Plaintext
15 lines
1.1 KiB
Plaintext
h1
|
|
= @execution_environment
|
|
= render('shared/edit_button', object: @execution_environment)
|
|
|
|
= row(label: 'execution_environment.name', value: @execution_environment.name)
|
|
= row(label: 'execution_environment.user', value: link_to_if(policy(@execution_environment.author).show?, @execution_environment.author, @execution_environment.author))
|
|
= row(label: 'execution_environment.file_type', value: @execution_environment.file_type.present? ? link_to(@execution_environment.file_type, @execution_environment.file_type) : nil)
|
|
- [:docker_image, :exposed_ports, :memory_limit, :cpu_limit, :network_enabled, :permitted_execution_time, :pool_size].each do |attribute|
|
|
= row(label: "execution_environment.#{attribute}", value: @execution_environment.send(attribute))
|
|
- [:run_command, :test_command].each do |attribute|
|
|
= row(label: "execution_environment.#{attribute}") do
|
|
code = @execution_environment.send(attribute)
|
|
= row(label: 'execution_environment.testing_framework', value: @testing_framework_adapter.try(:framework_name))
|
|
= row(label: 'execution_environment.help', value: render_markdown(@execution_environment.help))
|