diff --git a/app/views/execution_environments/_form.html.slim b/app/views/execution_environments/_form.html.slim index b2073d6f..6b74eeae 100644 --- a/app/views/execution_environments/_form.html.slim +++ b/app/views/execution_environments/_form.html.slim @@ -23,6 +23,7 @@ .form-group = f.label(:cpu_limit) = f.number_field(:cpu_limit, class: 'form-control', min: 1, step: 1, value: f.object.cpu_limit || ExecutionEnvironment::DEFAULT_CPU_LIMIT) + .help-block.form-text = t('.hints.cpu_limit') .form-check.mb-3 label.form-check-label = f.check_box(:network_enabled, class: 'form-check-input') diff --git a/config/locales/de.yml b/config/locales/de.yml index a1ff2414..4cf94e06 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -284,6 +284,7 @@ de: command: filename wird automatisch durch den richtigen Dateinamen ersetzt. docker_image: 'Wählen Sie ein Docker-Image aus der Liste oder fügen Sie ein neues hinzu, welches über DockerHub verfügbar ist.' exposed_ports_list: Während der Ausführung sind diese Ports für den Nutzer zugänglich. Die Portnummern müssen nummerisch und mit Komma voneinander getrennt sein. + cpu_limit: Geben Sie die Mindestmenge an CPU-Anteilen an, die für jeden Runner reserviert werden soll, gemessen in MHz. errors: not_synced_to_runner_management: Die Ausführungsumgebung wurde erstellt, aber aufgrund eines Fehlers nicht zum Runnermanagement synchronisiert. index: diff --git a/config/locales/en.yml b/config/locales/en.yml index 41722ab7..f9c1cfd9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -284,6 +284,7 @@ en: command: filename is automatically replaced with the correct filename. docker_image: Pick a Docker image listed above or add a new one which is available via DockerHub. exposed_ports_list: During code execution these ports are accessible for the user. Port numbers must be numeric and separated by a comma. + cpu_limit: Specify the minimum amount of CPU shares to reserve for each runner, measured in MHz. errors: not_synced_to_runner_management: The execution environment was created but not synced to the runner management due to an error. index: