Functions for running build jobs using Docker api.
Functions for running build jobs using Docker api.
(attach-container client id)
Attaches to given container. Returns a socket that can be used to communicate with it.
Attaches to given container. Returns a socket that can be used to communicate with it.
(container-logs client id & [opts])
Attaches to the container in order to read logs
Attaches to the container in order to read logs
(create-container client name config)
Creates a container with given name and configuration. client
must
be for category :containers
.
Creates a container with given name and configuration. `client` must be for category `:containers`.
(make-client category & [conn])
Creates a client for given category using the specified connection settings
Creates a client for given category using the specified connection settings
(parse-log-stream s)
Given a Docker input stream, parses it in to lines and returns it as a lazy seq of parsed maps, containing the stream type, size and message.
Given a Docker input stream, parses it in to lines and returns it as a lazy seq of parsed maps, containing the stream type, size and message.
(pull-image client url)
Pulls image from given url. Requires a client for category :images
.
Pulls image from given url. Requires a client for category `:images`.
(run-container c name config)
Utility function that creates and starts a container, and then reads the logs and returns them as a seq of strings.
Utility function that creates and starts a container, and then reads the logs and returns them as a seq of strings.
(start-container client id)
Starts the container, returns the output as a stream
Starts the container, returns the output as a stream
(stop-container client id)
Stops the container
Stops the container
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close