Ejemplo n.º 1
0
 def docker(self):
     return Docker()
Ejemplo n.º 2
0
 def test_docker_init_workspace(self):
     devel = Docker(workspace="files/tmp")
     assert "{}".format(devel.workspace) == "files/tmp"
Ejemplo n.º 3
0
 def test_docker_init_socket(self):
     docker = Docker(socket="tcp://127.0.0.1:2357")
     assert docker.socket == "tcp://127.0.0.1:2357"
Ejemplo n.º 4
0
 def bootstrap(self):
     return Docker(socket="unix:///var/run/docker-bootstrap.sock")
Ejemplo n.º 5
0
def publish_config():
    endpoint = endpoint_from_flag('endpoint.docker.joined')
    endpoint.set_config(socket=Docker().socket,
                        runtime='docker',
                        nvidia_enabled=is_state('nvidia-docker.supported'))
Ejemplo n.º 6
0
def dockerhost_connected(dockerhost):
    '''Transmits the docker url to any subordinates requiring it'''
    dockerhost.configure(Docker().socket)