Skip to content

Commit

Permalink
fixes for building Ubuntu packages with docker, on a Ubuntu host
Browse files Browse the repository at this point in the history
  • Loading branch information
tpokorra committed Nov 26, 2015
1 parent a46bd20 commit 96f60d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/BuildHelperDebian.py
Expand Up @@ -42,7 +42,7 @@ def PrepareForBuilding(self):
return False
if not self.run("apt-get -y upgrade"):
return False
if not self.run("apt-get -y install build-essential ca-certificates iptables curl apt-transport-https dpkg-sig reprepro wget"):
if not self.run("apt-get -y install build-essential ca-certificates iptables curl apt-transport-https dpkg-sig reprepro wget rsync"):
#apt-utils
return False
# make sure we have a fully qualified hostname
Expand Down
6 changes: 3 additions & 3 deletions lib/DockerContainer.py
Expand Up @@ -66,9 +66,9 @@ def createmachine(self, distro, release, arch, staticIP):
self.release = 8
if self.distro == "ubuntu":
if self.release == 'trusty':
self.release = 14.04
self.release = "14.04"
elif self.release == 'precise':
self.release = 12.04
self.release = "12.04"

return True

Expand Down Expand Up @@ -121,7 +121,7 @@ def destroy(self):
def stop(self):
#TODO docker stop does not work, not even for test job
#return self.executeOnHost("docker stop " + self.containername)
return self.executeOnHost("systemctl restart docker && sleep 60")
return self.executeOnHost("(systemctl restart docker || service docker restart) && sleep 60")

def rsyncContainerPut(self, src, dest):
dest = dest[:dest.rindex("/")]
Expand Down

0 comments on commit 96f60d3

Please sign in to comment.