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
e8595334
Commit
e8595334
authored
Feb 01, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build nr-cuup in CI (ubuntu)
parent
472e916a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+6
-5
No files found.
ci-scripts/cls_containerize.py
View file @
e8595334
...
...
@@ -360,6 +360,7 @@ class Containerize():
if
result
is
not
None
:
imageNames
.
append
((
'oai-enb'
,
'eNB'
))
imageNames
.
append
((
'oai-gnb'
,
'gNB'
))
imageNames
.
append
((
'oai-nr-cuup'
,
'nr-cuup'
))
imageNames
.
append
((
'oai-lte-ue'
,
'lteUE'
))
imageNames
.
append
((
'oai-nr-ue'
,
'nrUE'
))
if
self
.
host
==
'Red Hat'
:
...
...
@@ -680,7 +681,7 @@ class Containerize():
orgTag
=
'develop'
if
self
.
ranAllowMerge
:
orgTag
=
'ci-temp'
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
]
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
]
for
image
in
imageNames
:
tagToUse
=
self
.
ImageTagToUse
(
image
)
mySSH
.
command
(
f'docker image tag
{
image
}
:
{
orgTag
}
{
tagToUse
}
'
,
'\$'
,
5
)
...
...
@@ -814,7 +815,7 @@ class Containerize():
else
:
logging
.
debug
(
'Removing test images locally'
)
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
]
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
]
for
image
in
imageNames
:
cmd
=
f'docker rmi
{
self
.
ImageTagToUse
(
image
)
}
|| true'
if
lIpAddr
!=
'none'
:
...
...
@@ -856,7 +857,7 @@ class Containerize():
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/'
+
self
.
yamlPath
[
self
.
eNB_instance
],
'\$'
,
5
)
mySSH
.
command
(
'cp docker-compose.yml ci-docker-compose.yml'
,
'\$'
,
5
)
imagesList
=
[
'oai-enb'
,
'oai-gnb'
]
imagesList
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-nr-cuup'
]
for
image
in
imagesList
:
imageToUse
=
self
.
ImageTagToUse
(
image
)
mySSH
.
command
(
f'sed -i -e "s#image:
{
image
}
:latest#image:
{
imageToUse
}
#" ci-docker-compose.yml'
,
'\$'
,
2
)
...
...
@@ -1066,7 +1067,7 @@ class Containerize():
cmd
=
'cd '
+
self
.
yamlPath
[
0
]
+
' && cp docker-compose.y*ml docker-compose-ci.yml'
subprocess
.
run
(
cmd
,
shell
=
True
)
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
]
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
]
for
image
in
imageNames
:
tagToUse
=
self
.
ImageTagToUse
(
image
)
cmd
=
f'cd
{
self
.
yamlPath
[
0
]
}
&& sed -i -e "s@
{
image
}
:develop@
{
tagToUse
}
@" docker-compose-ci.yml'
...
...
@@ -1190,7 +1191,7 @@ class Containerize():
cmd
=
'cd '
+
self
.
yamlPath
[
0
]
+
' && cp docker-compose.y*ml docker-compose-ci.yml'
logging
.
info
(
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
]
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
]
for
image
in
imageNames
:
tagToUse
=
self
.
ImageTagToUse
(
image
)
cmd
=
f'cd
{
self
.
yamlPath
[
0
]
}
&& sed -i -e "s@
{
image
}
:develop@
{
tagToUse
}
@" docker-compose-ci.yml'
...
...
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