dockerlaunch package

Submodules

dockerlaunch.app module

class dockerlaunch.app.DockerLaunchApp(docker_settings, socket_location, pidfile_path, logger, pidfile_timeout=5, stdout_path='/dev/tty', stderr_path='/dev/tty', stdin_path='/dev/null')[source]

Bases: object

run()[source]
terminate(signo, stackframe)[source]

dockerlaunch.handler module

class dockerlaunch.handler.ThreadedUnixRequestHandler(docker_settings, logger, *args, **kwargs)[source]

Bases: socketserver.StreamRequestHandler

handle()[source]

dockerlaunch.layer module

class dockerlaunch.layer.DockerLayer(allowed_images, logger, script_filename, max_containers=10, docker_socket=None, shutdown_timeout=5, data_container='glossiaserverside_data_1', allow_host_mounting=False)[source]

Bases: object

destroy()[source]
get_container_count()[source]
get_container_id()[source]
get_container_info()[source]
get_container_logs(only=None)[source]
get_image_id()[source]
try_launch(image, data_location, update_socket=None)[source]
wait(timeout, destroy=False)[source]

dockerlaunch.main module

dockerlaunch.main.init_config()[source]

Load the configuration file.

dockerlaunch.main.run(indocker=None)[source]

dockerlaunch.server module

class dockerlaunch.server.ThreadedUnixServer(server_address, RequestHandlerClass, bind_and_activate=True)[source]

Bases: socketserver.ThreadingMixIn, socketserver.UnixStreamServer

daemon_threads = True
server_activate()[source]

dockerlaunch.utils module

Module contents