Merge remote-tracking branch 'origin/develop' into develop-SRS
This commit is contained in:
@@ -209,8 +209,7 @@ class Containerize():
|
|||||||
|
|
||||||
# if asterix, copy the entitlement and subscription manager configurations
|
# if asterix, copy the entitlement and subscription manager configurations
|
||||||
if self.host == 'Red Hat':
|
if self.host == 'Red Hat':
|
||||||
mySSH.command('mkdir -p tmp/ca/', '\$', 5)
|
mySSH.command('mkdir -p tmp/ca/ tmp/entitlement/', '\$', 5)
|
||||||
mySSH.command('mkdir -p tmp/entitlement/', '\$', 5)
|
|
||||||
mySSH.command('sudo cp /etc/rhsm/ca/redhat-uep.pem tmp/ca/', '\$', 5)
|
mySSH.command('sudo cp /etc/rhsm/ca/redhat-uep.pem tmp/ca/', '\$', 5)
|
||||||
mySSH.command('sudo cp /etc/pki/entitlement/*.pem tmp/entitlement/', '\$', 5)
|
mySSH.command('sudo cp /etc/pki/entitlement/*.pem tmp/entitlement/', '\$', 5)
|
||||||
|
|
||||||
@@ -288,7 +287,7 @@ class Containerize():
|
|||||||
# we need to update them with proper tag
|
# we need to update them with proper tag
|
||||||
mySSH.command('sed -i -e "s#' + baseImage + ':latest#' + baseImage + ':' + baseTag + '#" docker/Dockerfile.' + pattern + self.dockerfileprefix, '\$', 5)
|
mySSH.command('sed -i -e "s#' + baseImage + ':latest#' + baseImage + ':' + baseTag + '#" docker/Dockerfile.' + pattern + self.dockerfileprefix, '\$', 5)
|
||||||
if image != 'ran-build':
|
if image != 'ran-build':
|
||||||
mySSH.command('sed -i -e "s#' + "ran-build" + ':latest#' + "ran-build" + ':' + baseTag + '#" docker/Dockerfile.' + pattern + self.dockerfileprefix, '\$', 5)
|
mySSH.command('sed -i -e "s#' + "ran-build" + ':latest#' + "ran-build" + ':' + imageTag + '#" docker/Dockerfile.' + pattern + self.dockerfileprefix, '\$', 5)
|
||||||
mySSH.command(self.cli + ' build ' + self.cliBuildOptions + ' --target ' + image + ' --tag ' + image + ':' + imageTag + ' --file docker/Dockerfile.' + pattern + self.dockerfileprefix + ' . > cmake_targets/log/' + image + '.log 2>&1', '\$', 1200)
|
mySSH.command(self.cli + ' build ' + self.cliBuildOptions + ' --target ' + image + ' --tag ' + image + ':' + imageTag + ' --file docker/Dockerfile.' + pattern + self.dockerfileprefix + ' . > cmake_targets/log/' + image + '.log 2>&1', '\$', 1200)
|
||||||
# split the log
|
# split the log
|
||||||
mySSH.command('mkdir -p cmake_targets/log/' + image, '\$', 5)
|
mySSH.command('mkdir -p cmake_targets/log/' + image, '\$', 5)
|
||||||
@@ -338,6 +337,10 @@ class Containerize():
|
|||||||
mySSH.command('zip -r -qq build_log_' + self.testCase_id + '.zip build_log_' + self.testCase_id, '\$', 5)
|
mySSH.command('zip -r -qq build_log_' + self.testCase_id + '.zip build_log_' + self.testCase_id, '\$', 5)
|
||||||
mySSH.copyin(lIpAddr, lUserName, lPassWord, lSourcePath + '/cmake_targets/build_log_' + self.testCase_id + '.zip', '.')
|
mySSH.copyin(lIpAddr, lUserName, lPassWord, lSourcePath + '/cmake_targets/build_log_' + self.testCase_id + '.zip', '.')
|
||||||
mySSH.command('rm -f build_log_' + self.testCase_id + '.zip','\$', 5)
|
mySSH.command('rm -f build_log_' + self.testCase_id + '.zip','\$', 5)
|
||||||
|
# Remove all intermediate build images
|
||||||
|
if self.ranAllowMerge and forceBaseImageBuild:
|
||||||
|
mySSH.command(self.cli + ' image rm ' + baseImage + ':' + baseTag + ' || true', '\$', 30)
|
||||||
|
mySSH.command(self.cli + ' image rm ran-build:' + imageTag + ' || true','\$', 5)
|
||||||
mySSH.close()
|
mySSH.close()
|
||||||
ZipFile('build_log_' + self.testCase_id + '.zip').extractall('.')
|
ZipFile('build_log_' + self.testCase_id + '.zip').extractall('.')
|
||||||
|
|
||||||
|
|||||||
@@ -87,8 +87,12 @@ COPY --from=enb-base \
|
|||||||
/lib64/libboost_atomic.so.1.66.0 \
|
/lib64/libboost_atomic.so.1.66.0 \
|
||||||
/lib64/libboost_timer.so.1.66.0 \
|
/lib64/libboost_timer.so.1.66.0 \
|
||||||
/lib64/libboost_regex.so.1.66.0 \
|
/lib64/libboost_regex.so.1.66.0 \
|
||||||
|
/lib64/libicudata.so.60 \
|
||||||
|
/lib64/libicui18n.so.60 \
|
||||||
|
/lib64/libicuuc.so.60 \
|
||||||
/lib64/
|
/lib64/
|
||||||
|
|
||||||
|
|
||||||
# Now we are copying from builder-image the UHD files.
|
# Now we are copying from builder-image the UHD files.
|
||||||
COPY --from=enb-base /usr/local/bin/uhd_find_devices /usr/local/bin
|
COPY --from=enb-base /usr/local/bin/uhd_find_devices /usr/local/bin
|
||||||
COPY --from=enb-base /usr/local/lib/libprotobuf-c.so.1 /usr/local/lib
|
COPY --from=enb-base /usr/local/lib/libprotobuf-c.so.1 /usr/local/lib
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ COPY --from=gnb-base \
|
|||||||
/lib64/libboost_atomic.so.1.66.0 \
|
/lib64/libboost_atomic.so.1.66.0 \
|
||||||
/lib64/libboost_timer.so.1.66.0 \
|
/lib64/libboost_timer.so.1.66.0 \
|
||||||
/lib64/libboost_regex.so.1.66.0 \
|
/lib64/libboost_regex.so.1.66.0 \
|
||||||
|
/lib64/libicudata.so.60 \
|
||||||
|
/lib64/libicui18n.so.60 \
|
||||||
|
/lib64/libicuuc.so.60 \
|
||||||
/lib64/
|
/lib64/
|
||||||
|
|
||||||
# Now we are copying from builder-image the UHD files.
|
# Now we are copying from builder-image the UHD files.
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ COPY --from=lte-ue-base \
|
|||||||
/lib64/libboost_atomic.so.1.66.0 \
|
/lib64/libboost_atomic.so.1.66.0 \
|
||||||
/lib64/libboost_timer.so.1.66.0 \
|
/lib64/libboost_timer.so.1.66.0 \
|
||||||
/lib64/libboost_regex.so.1.66.0 \
|
/lib64/libboost_regex.so.1.66.0 \
|
||||||
|
/lib64/libicudata.so.60 \
|
||||||
|
/lib64/libicui18n.so.60 \
|
||||||
|
/lib64/libicuuc.so.60 \
|
||||||
/lib64/
|
/lib64/
|
||||||
|
|
||||||
# Now we are copying from builder-image the UHD files.
|
# Now we are copying from builder-image the UHD files.
|
||||||
|
|||||||
@@ -95,6 +95,9 @@ COPY --from=nr-ue-base \
|
|||||||
/lib64/libboost_atomic.so.1.66.0 \
|
/lib64/libboost_atomic.so.1.66.0 \
|
||||||
/lib64/libboost_timer.so.1.66.0 \
|
/lib64/libboost_timer.so.1.66.0 \
|
||||||
/lib64/libboost_regex.so.1.66.0 \
|
/lib64/libboost_regex.so.1.66.0 \
|
||||||
|
/lib64/libicudata.so.60 \
|
||||||
|
/lib64/libicui18n.so.60 \
|
||||||
|
/lib64/libicuuc.so.60 \
|
||||||
/lib64/
|
/lib64/
|
||||||
|
|
||||||
# Now we are copying from builder-image the UHD files.
|
# Now we are copying from builder-image the UHD files.
|
||||||
|
|||||||
Reference in New Issue
Block a user