Docker-based clojure.test fixture
Docker-based clojure.test fixture
Get the container host; try docker-machine, default to localhost
Get the container host; try docker-machine, default to localhost
(new-container {:keys [cmd sleep]})
Create a new docker container using cmd, waiting for sleep for the container to become ready
Create a new docker container using cmd, waiting for sleep for the container to become ready
(new-fixture {:keys [cmd sleep init-fn] :or {init-fn identity sleep 1000}})
A new test fixture using the docker cmd, sleeping for sleep ms before allowing test to continue, then running init-fn for side effects, a fn taking an argument of component.
A new test fixture using the docker cmd, sleeping for sleep ms before allowing test to continue, then running init-fn for side effects, a fn taking an argument of component.
(rand-port)
Get a string representation of a random TCP port in the ephemeral range
Get a string representation of a random TCP port in the ephemeral range
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close