Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
e017df3d
Commit
e017df3d
authored
Feb 21, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better show image info in HTML
- each image in a new line - only show up to seconds in date
parent
6b9d98f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+3
-7
No files found.
ci-scripts/cls_containerize.py
View file @
e017df3d
...
...
@@ -1113,22 +1113,18 @@ class Containerize():
else
:
time
.
sleep
(
10
)
imagesInfo
=
''
html_cell
=
''
for
newCont
in
newContainers
:
if
newCont
==
'rfsim4g-db-init'
:
continue
cmd
=
'docker inspect -f "{{.Config.Image}}" '
+
newCont
imageInspect
=
myCmd
.
run
(
cmd
,
timeout
=
30
,
silent
=
True
)
imageName
=
str
(
imageInspect
.
stdout
).
strip
()
cmd
=
'docker image inspect --format
"{{.RepoTags}}
\t
{{.Size}} bytes
\t
{{.Created}}
\t
{{.Id}}"
'
+
imageName
cmd
=
'docker image inspect --format
\'
{{.RepoTags}}
\t
{{.Size}} bytes
\t
{{index (split .Created ".") 0}}
\n
{{.Id}}
\'
'
+
imageName
imageInspect
=
myCmd
.
run
(
cmd
,
30
,
silent
=
True
)
imagesInfo
+=
imageInspect
.
stdout
.
strip
()
html_cell
+=
imageInspect
.
stdout
+
'
\n
'
myCmd
.
close
()
html_cell
=
''
for
imageInfo
in
imagesInfo
.
split
(
'
\n
'
):
html_cell
+=
imageInfo
[:
-
11
]
+
'
\n
'
html_cell
+=
'
\n
'
for
cState
in
containerStatus
:
html_cell
+=
cState
+
'
\n
'
if
count
==
100
and
healthy
==
self
.
nb_healthy
[
0
]:
...
...
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