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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
0973cb87
Commit
0973cb87
authored
Mar 18, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI][DOCKER] fix RHEL8 build
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
bbb74899
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+3
-2
ci-scripts/xml_files/fr1_image_build.xml
ci-scripts/xml_files/fr1_image_build.xml
+1
-1
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+5
-5
No files found.
ci-scripts/cls_containerize.py
View file @
0973cb87
...
@@ -35,6 +35,7 @@ import sys # arg
...
@@ -35,6 +35,7 @@ import sys # arg
import
re
# reg
import
re
# reg
import
logging
import
logging
import
os
import
os
import
shutil
import
time
import
time
from
multiprocessing
import
Process
,
Lock
,
SimpleQueue
from
multiprocessing
import
Process
,
Lock
,
SimpleQueue
from
zipfile
import
ZipFile
from
zipfile
import
ZipFile
...
@@ -215,7 +216,7 @@ class Containerize():
...
@@ -215,7 +216,7 @@ class Containerize():
# First verify if images were properly created.
# First verify if images were properly created.
status
=
True
status
=
True
mySSH
.
command
(
self
.
cli
+
' image inspect --format=
\'
Size = {{.Size}} bytes
\'
'
+
sharedimage
+
':'
+
imageTag
,
'\$'
,
5
)
mySSH
.
command
(
self
.
cli
+
' image inspect --format=
\'
Size = {{.Size}} bytes
\'
'
+
sharedimage
+
':'
+
imageTag
,
'\$'
,
5
)
if
mySSH
.
getBefore
().
count
(
'No such object'
)
!=
0
:
if
(
mySSH
.
getBefore
().
count
(
'No such object'
)
!=
0
)
or
(
mySSH
.
getBefore
().
count
(
'no such image'
)
!=
0
)
:
logging
.
error
(
'Could not build properly ran-build'
)
logging
.
error
(
'Could not build properly ran-build'
)
status
=
False
status
=
False
else
:
else
:
...
@@ -239,7 +240,7 @@ class Containerize():
...
@@ -239,7 +240,7 @@ class Containerize():
logging
.
debug
(
'ran-build size is unknown'
)
logging
.
debug
(
'ran-build size is unknown'
)
for
image
,
pattern
in
imageNames
:
for
image
,
pattern
in
imageNames
:
mySSH
.
command
(
self
.
cli
+
' image inspect --format=
\'
Size = {{.Size}} bytes
\'
'
+
image
+
':'
+
imageTag
,
'\$'
,
5
)
mySSH
.
command
(
self
.
cli
+
' image inspect --format=
\'
Size = {{.Size}} bytes
\'
'
+
image
+
':'
+
imageTag
,
'\$'
,
5
)
if
mySSH
.
getBefore
().
count
(
'No such object'
)
!=
0
:
if
(
mySSH
.
getBefore
().
count
(
'No such object'
)
!=
0
)
or
(
mySSH
.
getBefore
().
count
(
'no such image'
)
!=
0
)
:
logging
.
error
(
'Could not build properly '
+
image
)
logging
.
error
(
'Could not build properly '
+
image
)
status
=
False
status
=
False
else
:
else
:
...
...
ci-scripts/xml_files/fr1_image_build.xml
View file @
0973cb87
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<testCase
id=
"000001"
>
<testCase
id=
"000001"
>
<class>
Build_Image
</class>
<class>
Build_Image
</class>
<desc>
Build
eNB Image
</desc>
<desc>
Build
all Images
</desc>
<kind>
all
</kind>
<kind>
all
</kind>
<eNB_instance>
0
</eNB_instance>
<eNB_instance>
0
</eNB_instance>
<eNB_serverId>
0
</eNB_serverId>
<eNB_serverId>
0
</eNB_serverId>
...
...
cmake_targets/tools/build_helper
View file @
0973cb87
...
@@ -359,10 +359,10 @@ check_install_usrp_uhd_driver(){
...
@@ -359,10 +359,10 @@ check_install_usrp_uhd_driver(){
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
if [ $IS_CONTAINER -eq 0 ]
if [ $IS_CONTAINER -eq 0 ]
then
then
$SUDO $INSTALLER -y install python boost libusb-devel libusbx-devel boost-devel python-mako python-docutils
cmake
$SUDO $INSTALLER -y install python boost libusb-devel libusbx-devel boost-devel python-mako python-docutils
$CMAKE
$SUDO -H pip install requests
$SUDO -H pip install requests
else
else
$SUDO $INSTALLER -y install boost boost-devel
cmake3
$SUDO $INSTALLER -y install boost boost-devel
$CMAKE
$SUDO pip3 install mako requests
$SUDO pip3 install mako requests
fi
fi
if [[ "$OS_DISTRO" == "rhel" ]] || [[ "$OS_DISTRO" == "centos" ]]; then
if [[ "$OS_DISTRO" == "rhel" ]] || [[ "$OS_DISTRO" == "centos" ]]; then
...
@@ -488,7 +488,7 @@ install_soapy_from_source(){
...
@@ -488,7 +488,7 @@ install_soapy_from_source(){
#git checkout tags/release_003_010_001_001
#git checkout tags/release_003_010_001_001
mkdir -p build
mkdir -p build
cd build
cd build
cmake
../
$CMAKE
../
echo "Compiling SoapyRemote"
echo "Compiling SoapyRemote"
make -j`nproc`
make -j`nproc`
$SUDO make install
$SUDO make install
...
@@ -507,7 +507,7 @@ install_soapy_iris_from_source(){
...
@@ -507,7 +507,7 @@ install_soapy_iris_from_source(){
cd sklk-soapyiris
cd sklk-soapyiris
mkdir -p build
mkdir -p build
cd build
cd build
cmake
../
$CMAKE
../
echo "Compiling SoapyIris"
echo "Compiling SoapyIris"
make -j`nproc`
make -j`nproc`
$SUDO make install
$SUDO make install
...
@@ -684,7 +684,7 @@ check_install_oai_software() {
...
@@ -684,7 +684,7 @@ check_install_oai_software() {
automake \
automake \
bison \
bison \
build-essential \
build-essential \
cmake
\
$CMAKE
\
cmake-curses-gui \
cmake-curses-gui \
ninja-build \
ninja-build \
doxygen \
doxygen \
...
...
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