Commit 2e377ada authored by Mohammed Ismail's avatar Mohammed Ismail

updated

parent 1249c386
......@@ -203,7 +203,7 @@ class Containerize():
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/pki/entitlement/*.pem tmp/entitlement/', '\$', 5)
"""
# debug to be removed
for image,pattern in imageNames:
mySSH.command(self.cli + ' image rm ' + image + ':' + imageTag, '\$', 5)
......@@ -211,13 +211,14 @@ class Containerize():
#mySSH.close()
#return 0
"""
# Build the shared image
sharedimage = ''
if self.host == 'Ubuntu':
sharedimage = 'ran-build'
elif self.host == 'Red Hat':
sharedimage = 'ran-build'
"""
mySSH.command(self.cli + ' build --target ' + sharedimage + ' --tag '+ sharedimage + ':' + imageTag + ' --file docker/Dockerfile.ran' + self.dockerfileprefix + ' --build-arg NEEDED_GIT_PROXY="http://proxy.eurecom.fr:8080" . > cmake_targets/log/ran-build.log 2>&1', '\$', 800)
# Build the target image(s)
previousImage = sharedimage + ':' + imageTag
......@@ -233,7 +234,7 @@ class Containerize():
if result is not None:
danglingShaOnes.append((image, result.group('imageShaOne')))
previousImage=image + ':' + imageTag
"""
imageTag = 'ci-temp'
# First verify if images were properly created.
status = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment