Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0df8838d
Commit
0df8838d
authored
Oct 17, 2017
by
tpetr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow setting --cgroup-parent for docker run commands
parent
2986b37d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
common.sh
build/common.sh
+5
-0
No files found.
build/common.sh
View file @
0df8838d
...
@@ -589,6 +589,11 @@ function kube::build::run_build_command_ex() {
...
@@ -589,6 +589,11 @@ function kube::build::run_build_command_ex() {
--env
"GOGCFLAGS=
${
GOGCFLAGS
:-}
"
--env
"GOGCFLAGS=
${
GOGCFLAGS
:-}
"
)
)
if
[
!
-z
"
${
DOCKER_CGROUP_PARENT
:-}
"
]
;
then
kube::log::status
"Using
${
DOCKER_CGROUP_PARENT
}
as container cgroup parent"
docker_run_opts+
=(
--cgroup-parent
"
${
DOCKER_CGROUP_PARENT
}
"
)
fi
# If we have stdin we can run interactive. This allows things like 'shell.sh'
# If we have stdin we can run interactive. This allows things like 'shell.sh'
# to work. However, if we run this way and don't have stdin, then it ends up
# to work. However, if we run this way and don't have stdin, then it ends up
# running in a daemon-ish mode. So if we don't have a stdin, we explicitly
# running in a daemon-ish mode. So if we don't have a stdin, we explicitly
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment