Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
AuTA
Core
Merge requests
!167
Release v2.3.4
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Release v2.3.4
development
into
master
Overview
0
Commits
8
Pipelines
1
Changes
3
Merged
Release v2.3.4
Luc Everse
requested to merge
development
into
master
Mar 18, 2021
Overview
0
Commits
8
Pipelines
1
Changes
3
Description
Adds a memory limit 4 GiB to Docker containers.
Changes
N/A
Additions
Allocate at most 4 GiB of RAM (including swap) to a Docker container
Set the name of the docker image to the submission ID for easier identification
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
62f4387c
8 commits,
Mar 18, 2021
3 files
+
34
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
worker/src/main/java/nl/tudelft/ewi/auta/checker/generic/docker/api/DockerApi.java
+
14
−
0
View file @ 62f4387c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -53,6 +53,20 @@ public class DockerApi {
return
res
.
get
(
"Id"
).
getAsString
();
}
/**
* Creates a new Docker container.
*
* @param name the name of the container
* @param config the container configuration, passed as-is
*
* @return the ID of the container
*/
public
String
createContainer
(
final
String
name
,
final
Map
<
String
,
Object
>
config
)
{
final
var
res
=
this
.
api
.
postWithJson
(
"/containers/create?name="
+
name
,
config
);
return
res
.
get
(
"Id"
).
getAsString
();
}
/**
* Starts the container.
*
Loading