Liking cljdoc? Tell your friends :D

clj-test-containers.core


bind-filesystem!clj

(bind-filesystem!
  container-config
  {host-path :host-path container-path :container-path mode :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-conf
                         {container-path :container-path path :path type :type})

Copies a file into the running container

Copies a file into the running container
sourceraw docstring

createclj

(create {image-name :image-name
         exposed-ports :exposed-ports
         env-vars :env-vars
         command :command})

Sets the properties for a testcontainer instance

Sets the properties for a testcontainer instance
sourceraw docstring

execute-command!clj

(execute-command! container-conf command)

Executes a command in the container, and returns the result

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

map-classpath-resource!clj

(map-classpath-resource!
  container-config
  {resource-path :resource-path container-path :container-path mode :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-conf)

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-conf)

Stops the underlying container

Stops the underlying container
sourceraw docstring

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

× close