(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!
(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
(create {:keys [image-name] :as options})
Creates a generic testcontainer and sets its properties
Creates a generic testcontainer and sets its properties
(create-from-docker-file {:keys [docker-file] :as options})
Creates a testcontainer from a provided Dockerfile
Creates a testcontainer from a provided Dockerfile
(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
(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
(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
(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!
(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
(stop! container-config)
Stops the underlying container
Stops the underlying container
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close