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
zzha zzha
OpenXG-RAN
Commits
7a6c2125
Commit
7a6c2125
authored
Nov 22, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DeployGenObject(): log sed commands for used image
parent
232cebe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+1
-7
No files found.
ci-scripts/cls_containerize.py
View file @
7a6c2125
...
@@ -966,15 +966,11 @@ class Containerize():
...
@@ -966,15 +966,11 @@ class Containerize():
self
.
exitStatus
=
1
self
.
exitStatus
=
1
HTML
.
CreateHtmlTestRow
(
'SVC not Found'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
'SVC not Found'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
return
return
displayUsedTag
=
False
for
reqSvc
in
self
.
services
[
0
].
split
(
' '
):
for
reqSvc
in
self
.
services
[
0
].
split
(
' '
):
res
=
re
.
search
(
reqSvc
,
listServices
)
res
=
re
.
search
(
reqSvc
,
listServices
)
if
res
is
None
:
if
res
is
None
:
logging
.
error
(
reqSvc
+
' not found in specified docker-compose'
)
logging
.
error
(
reqSvc
+
' not found in specified docker-compose'
)
self
.
exitStatus
=
1
self
.
exitStatus
=
1
res
=
re
.
search
(
'oai-gnb|oai-nr-ue|oai-cu|oai-du|oai_enb|oai_ue'
,
reqSvc
)
if
res
is
not
None
:
displayUsedTag
=
True
if
(
self
.
exitStatus
==
1
):
if
(
self
.
exitStatus
==
1
):
HTML
.
CreateHtmlTestRow
(
'SVC not Found'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
'SVC not Found'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
return
return
...
@@ -985,10 +981,8 @@ class Containerize():
...
@@ -985,10 +981,8 @@ class Containerize():
for
image
in
imageNames
:
for
image
in
imageNames
:
tagToUse
=
self
.
ImageTagToUse
(
image
)
tagToUse
=
self
.
ImageTagToUse
(
image
)
cmd
=
f'cd
{
self
.
yamlPath
[
0
]
}
&& sed -i -e "s@
{
image
}
:develop@
{
tagToUse
}
@" docker-compose-ci.yml'
cmd
=
f'cd
{
self
.
yamlPath
[
0
]
}
&& sed -i -e "s@
{
image
}
:develop@
{
tagToUse
}
@" docker-compose-ci.yml'
logging
.
debug
(
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
subprocess
.
run
(
cmd
,
shell
=
True
)
if
displayUsedTag
:
tagToUse
=
self
.
ImageTagToUse
(
'oai-xxx'
)
logging
.
info
(
f'
\u001B
[1m Using Image Tag:
{
tagToUse
}
\u001B
[0m'
)
cmd
=
'cd '
+
self
.
yamlPath
[
0
]
+
' && docker-compose -f docker-compose-ci.yml up -d '
+
self
.
services
[
0
]
cmd
=
'cd '
+
self
.
yamlPath
[
0
]
+
' && docker-compose -f docker-compose-ci.yml up -d '
+
self
.
services
[
0
]
logging
.
info
(
cmd
)
logging
.
info
(
cmd
)
...
...
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