summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-18 09:35:33 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-18 09:35:33 +0300
commit0b02e3cdc5bfb107f368a9d88bf166016d855dd1 (patch)
tree41270aa7c8072d1dd4780da7f0c60cf767cd74d8
parentb653961a50cc3ab45f2a3e121c15bb0683c36e44 (diff)
downloadick-contractor-0b02e3cdc5bfb107f368a9d88bf166016d855dd1.tar.gz
Fix: create /workspace, my worker VM images no longer have it
The less an image needs to provide, the better.
-rwxr-xr-xcontractor3
1 files changed, 2 insertions, 1 deletions
diff --git a/contractor b/contractor
index e3475f3..43fdc43 100755
--- a/contractor
+++ b/contractor
@@ -119,7 +119,7 @@ class ContractorApplication(cliapp.Application):
worker = OnWorker(
dest, 'worker@{}'.format(worker_ip), verbose=self.verbose)
- self.exec_sequence(worker, MountWSonWorker())
+ self.exec_sequence(worker, Mkdir('/workspace'), MountWSonWorker())
execs = []
install = bs.install()
@@ -451,6 +451,7 @@ class Mkdir(RemoteExecution):
def __init__(self, pathname, owner='root', group='root', mode=0o755):
self._argv = [
+ 'sudo',
'install', '-d',
'-o', str(owner),
'-g', str(group),