def new_container(self): return new_docker_container( name=self.name, image=dev_tag('kraken-tracker'), environment={}, ports={self.port: self.port}, volumes=self.volumes, command=[ '/usr/bin/kraken-tracker', '--config=/etc/kraken/config/tracker/{config}'.format(config=self.config_file), '--port={port}'.format(port=self.port)], health_check=HealthCheck(format_insecure_curl('localhost:{port}/health'.format(port=self.port))))
def new_container(self): self.instance.port_rez.release() return new_docker_container( name=self.name, image=dev_tag('kraken-build-index'), ports={self.port: self.port}, environment={}, command=[ '/usr/bin/kraken-build-index', '--config=/etc/kraken/config/build-index/{config}'.format(config=self.config_file), '--port={port}'.format(port=self.port), ], volumes=self.volumes, health_check=HealthCheck(format_insecure_curl( 'https://localhost:{}/health'.format(self.port))))
def new_container(self): self.instance.port_rez.release() return new_docker_container( name=self.name, image=dev_tag('kraken-origin'), volumes=self.volumes, environment={}, ports={ self.instance.port: self.instance.port, self.instance.peer_port: self.instance.peer_port, }, command=[ '/usr/bin/kraken-origin', '--config=/etc/kraken/config/origin/{config}'.format(config=self.config_file), '--blobserver-port={port}'.format(port=self.instance.port), '--blobserver-hostname={hostname}'.format(hostname=self.instance.hostname), '--peer-ip={ip}'.format(ip=get_docker_bridge()), '--peer-port={port}'.format(port=self.instance.peer_port), ], health_check=HealthCheck(format_insecure_curl('https://localhost:{}/health'.format(self.instance.port))))