def reconfigService(self, name, marathon_url, image, marathon_auth=None, marathon_extra_config=None, marathon_app_prefix="buildbot-worker/", masterFQDN=None, **kwargs): # Set build_wait_timeout to 0s if not explicitly set: Starting a # container is almost immediate, we can afford doing so for each build. if 'build_wait_timeout' not in kwargs: kwargs['build_wait_timeout'] = 0 yield DockerBaseWorker.reconfigService(self, name, image=image, masterFQDN=masterFQDN, **kwargs) self._http = yield HTTPClientService.getService(self.master, marathon_url, auth=marathon_auth) if marathon_extra_config is None: marathon_extra_config = {} self.marathon_extra_config = marathon_extra_config self.marathon_app_prefix = marathon_app_prefix
def reconfigService(self, name, image='buildbot/buildbot-worker', namespace=None, masterFQDN=None, kube_extra_spec=None, kube_config=None, **kwargs): # Set build_wait_timeout to 0 if not explicitly set: Starting a # container is almost immediate, we can afford doing so for each build. if 'build_wait_timeout' not in kwargs: kwargs['build_wait_timeout'] = 0 if masterFQDN is None: masterFQDN = self.get_ip if callable(masterFQDN): masterFQDN = masterFQDN() yield DockerBaseWorker.reconfigService(self, name, image=image, masterFQDN=masterFQDN, **kwargs) self._kube = yield kubeclientservice.KubeClientService.getService( self.master, kube_config=kube_config) self.namespace = namespace or self._kube.namespace self.kube_extra_spec = kube_extra_spec or {}
def reconfigService(self, name, password, hyper_host, hyper_accesskey, hyper_secretkey, image, hyper_size="s3", masterFQDN=None, **kwargs): yield DockerBaseWorker.reconfigService(self, name, password, image=image, masterFQDN=masterFQDN, **kwargs) self.manager = yield HyperLatentManager.getService(self.master, hyper_host, hyper_accesskey, hyper_secretkey) self.size = hyper_size
def reconfigService(self, name, password, hyper_host, hyper_accesskey, hyper_secretkey, image, hyper_size="s3", masterFQDN=None, **kwargs): yield DockerBaseWorker.reconfigService(self, name, password, image=image, masterFQDN=masterFQDN, **kwargs) self.manager = yield HyperLatentManager.getService(self.master, hyper_host, hyper_accesskey, hyper_secretkey) self.masterhash = hashlib.sha1(self.master.name).hexdigest()[:6] self.size = hyper_size self.image = image if not masterFQDN: # also match empty string (for UI) masterFQDN = socket.getfqdn() self.masterFQDN = masterFQDN
def reconfigService(self, name, marathon_url, image, marathon_auth=None, marathon_extra_config=None, marathon_app_prefix="buildbot-worker/", masterFQDN=None, **kwargs): # Set build_wait_timeout to 0s if not explicitly set: Starting a # container is almost immediate, we can afford doing so for each build. if 'build_wait_timeout' not in kwargs: kwargs['build_wait_timeout'] = 0 yield DockerBaseWorker.reconfigService( self, name, image=image, masterFQDN=masterFQDN, **kwargs) self._http = yield HTTPClientService.getService( self.master, marathon_url, auth=marathon_auth) if marathon_extra_config is None: marathon_extra_config = {} self.marathon_extra_config = marathon_extra_config self.marathon_app_prefix = marathon_app_prefix