Liking cljdoc? Tell your friends :D

clj-test-containers.core


bind-filesystem!clj

(bind-filesystem! container-config {:keys [host-path container-path mode]})

Binds a source from the filesystem to the given container path. Should be called before starting the container!

Binds a source from the filesystem to the given container path. Should be called before starting the container!
sourceraw docstring

copy-file-to-container!clj

(copy-file-to-container! container-config {:keys [container-path path type]})

Copies a file into the running container

Copies a file into the running container
sourceraw docstring

createclj

(create {:keys [image-name] :as options})

Creates a generic testcontainer and sets its properties

Creates a generic testcontainer and sets its properties
sourceraw docstring

create-from-docker-fileclj

(create-from-docker-file {:keys [docker-file] :as options})

Creates a testcontainer from a provided Dockerfile

Creates a testcontainer from a provided Dockerfile
sourceraw docstring

execute-command!clj

(execute-command! container-config command)

Executes a command in the container, and returns the result

Executes a command in the container, and returns the result
sourceraw docstring

initclj

(init {:keys [container exposed-ports env-vars command network
              network-aliases]})

Sets the properties for a testcontainer instance

Sets the properties for a testcontainer instance
sourceraw docstring

init-networkclj

(init-network)
(init-network options)

Creates a network. The optional map accepts config values for enabling ipv6 and setting the driver

Creates a network. The optional map accepts config values for enabling ipv6 and setting the driver
sourceraw docstring

map-classpath-resource!clj

(map-classpath-resource! container-config
                         {:keys [resource-path container-path mode]})

Maps a resource in the classpath to the given container path. Should be called before starting the container!

Maps a resource in the classpath to the given container path. Should be called before starting the container!
sourceraw docstring

start!clj

(start! container-config)

Starts the underlying testcontainer instance and adds new values to the response map, e.g. :id and :first-mapped-port

Starts the underlying testcontainer instance and adds new values to the response map, e.g. :id and :first-mapped-port
sourceraw docstring

stop!clj

(stop! container-config)

Stops the underlying container

Stops the underlying container
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close