Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
8c2628ea
Commit
8c2628ea
authored
1 year ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
testing: update inst/testing/nemo1/
parent
3b4ae9a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inst/testing/nemo1/mynemo-docker-dind
+15
-1
15 additions, 1 deletion
inst/testing/nemo1/mynemo-docker-dind
with
15 additions
and
1 deletion
inst/testing/nemo1/mynemo-docker-dind
+
15
−
1
View file @
8c2628ea
...
@@ -435,10 +435,15 @@ elif [ "$1" = "--logsall" -o "$1" = "--get-nemo-logsall" ]; then #arg # get all
...
@@ -435,10 +435,15 @@ elif [ "$1" = "--logsall" -o "$1" = "--get-nemo-logsall" ]; then #arg # get all
(
set
-x
;
docker
exec
"
$docker_outer__container_name
"
sh
-c
"docker ps | awk 'NR>1 { print
\$
0; }' | while read id rest; do echo
\"
#
\$
id
\$
rest
\"
; docker logs
\"\$
id
\"
; echo; done"
)
(
set
-x
;
docker
exec
"
$docker_outer__container_name
"
sh
-c
"docker ps | awk 'NR>1 { print
\$
0; }' | while read id rest; do echo
\"
#
\$
id
\$
rest
\"
; docker logs
\"\$
id
\"
; echo; done"
)
echo
1>&2
echo
1>&2
elif
[
"
$1
"
=
"--logsall2"
]
;
then
#arg # determine all active log files in nemo container
shift
1
(
set
-x
;
docker
exec
"
$docker_outer__container_name
"
sh
-c
"lsof -Pn -w | awk '
\$
(NF) ~ /
\\
.log
$/
&& /
\\
s[0-9]+w
\\
s+REG
\\
s/ { print dirprefix
\$
(NF); }' dirprefix=
\"\$
1
\"
| sort -u"
--
"/proc/
$(
docker inspect
"
$docker_outer__container_name
"
|
awk
'/"Pid":/ { sub(/,$/, ""); print $2; }'
)
/root"
)
elif
[
"
$1
"
=
"--logsall2.tailf"
]
;
then
#arg # run tail -f on all active log files in nemo container
elif
[
"
$1
"
=
"--logsall2.tailf"
]
;
then
#arg # run tail -f on all active log files in nemo container
shift
1
shift
1
(
set
-x
;
docker
exec
"
$docker_outer__container_name
"
sh
-c
"tail -f
\$
(lsof -Pn -w | awk '
\$
(NF) ~ /
\.
log
$/
&& /w
\\
s+REG/ { print
\$
(NF); }' | sort -u)"
)
(
set
-x
;
docker
exec
"
$docker_outer__container_name
"
sh
-c
"tail -f
\$
(lsof -Pn -w | awk '
\$
(NF) ~ /
\
\
.log
$/
&& /
\\
s[0-9]+
w
\\
s+REG
\\
s
/ { print
\$
(NF); }' | sort -u)"
)
#
#
...
@@ -571,7 +576,16 @@ elif [ "$1" = "--allx" ]; then #arg # all-in-one mode
...
@@ -571,7 +576,16 @@ elif [ "$1" = "--allx" ]; then #arg # all-in-one mode
"
$0
"
--exec
./install_and_run_vsmd
--install_only
"
$0
"
--exec
./install_and_run_vsmd
--install_only
echo
echo
"# logfiles in outer nemo container:"
"
$0
"
--logsall2
echo
echo
"# nemo installation dir in outer nemo container:"
"
$0
"
--nemo-get-dirname-onhost
"
$0
"
--nemo-get-dirname-onhost
echo
echo
"# client cert file:"
"
$0
"
--nemo-get-filename-of-certfile
"
$0
"
--nemo-get-filename-of-certfile
#arg
#arg
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment