Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
15529df7
Commit
15529df7
authored
Jan 13, 2025
by
Neelay Shah
Committed by
GitHub
Jan 13, 2025
Browse files
ci: updating run to enable leaving container image
parent
fd42de29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
container/run.sh
container/run.sh
+20
-1
No files found.
container/run.sh
View file @
15529df7
...
...
@@ -103,6 +103,14 @@ get_options() {
missing_requirement
$1
fi
;;
--rm
)
if
[
"
$2
"
]
;
then
RM
=
$2
shift
else
missing_requirement
$1
fi
;;
-v
)
if
[
"
$2
"
]
;
then
VOLUME_MOUNTS+
=
" -v
$2
"
...
...
@@ -212,12 +220,23 @@ get_options() {
PRIVILEGED
=
"FALSE"
fi
if
[
-z
${
RM
}
]
;
then
RM
=
"TRUE"
fi
if
[[
${
PRIVILEGED
^^
}
==
"FALSE"
]]
;
then
PRIVILEGED_STRING
=
""
else
PRIVILEGED_STRING
=
"--privileged"
fi
if
[[
${
RM
^^
}
==
"FALSE"
]]
;
then
RM_STRING
=
""
else
RM_STRING
=
" --rm "
fi
REMAINING_ARGS
=(
"
$@
"
)
}
...
...
@@ -254,6 +273,6 @@ if [ -z "$RUN_PREFIX" ]; then
set
-x
fi
${
RUN_PREFIX
}
docker run
${
GPU_STRING
}
${
INTERACTIVE
}
--rm
--network
host
--shm-size
=
10G
--ulimit
memlock
=
-1
--ulimit
stack
=
67108864
${
ENVIRONMENT_VARIABLES
}
${
VOLUME_MOUNTS
}
-w
/workspace
--cap-add
CAP_SYS_PTRACE
--ipc
host
${
PRIVILEGED_STRING
}
${
NAME_STRING
}
${
IMAGE
}
"
${
REMAINING_ARGS
[@]
}
"
${
RUN_PREFIX
}
docker run
${
GPU_STRING
}
${
INTERACTIVE
}
${
RM_STRING
}
--network
host
--shm-size
=
10G
--ulimit
memlock
=
-1
--ulimit
stack
=
67108864
${
ENVIRONMENT_VARIABLES
}
${
VOLUME_MOUNTS
}
-w
/workspace
--cap-add
CAP_SYS_PTRACE
--ipc
host
${
PRIVILEGED_STRING
}
${
NAME_STRING
}
${
IMAGE
}
"
${
REMAINING_ARGS
[@]
}
"
{
set
+x
;
}
2>/dev/null
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