8 - Corrected documentation
This commit is contained in:
parent
5f6c9d21ad
commit
7e436715c0
1 changed files with 15 additions and 15 deletions
10
README.md
10
README.md
|
|
@ -68,7 +68,7 @@ Creates a testcontainers instance from a given Docker label and returns them
|
||||||
| `:exposed-ports` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
|
| `:exposed-ports` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
|
||||||
| `:env-vars` | Map | A map with environment variables|
|
| `:env-vars` | Map | A map with environment variables|
|
||||||
| `:command` | Vector with strings | The start command of the container|
|
| `:command` | Vector with strings | The start command of the container|
|
||||||
| `:network` | | A map containing the configuration of a Docker Network (see: `init-network`)|
|
| `:network` | Map | A map containing the configuration of a Docker Network (see: `init-network`)|
|
||||||
| `:network-aliases` | Map | A list of alias names for the container on the network |
|
| `:network-aliases` | Map | A list of alias names for the container on the network |
|
||||||
|
|
||||||
#### Result:
|
#### Result:
|
||||||
|
|
@ -105,7 +105,7 @@ Initializes a given Testcontainer, which was e.g. provided by a library
|
||||||
| `:exposed-ports` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
|
| `:exposed-ports` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
|
||||||
| `:env-vars` | Map | A map with environment variables|
|
| `:env-vars` | Map | A map with environment variables|
|
||||||
| `:command` | Vector with strings | The start command of the container|
|
| `:command` | Vector with strings | The start command of the container|
|
||||||
| `:network` | | A map containing the configuration of a Docker Network (see: `init-network`)|
|
| `:network` | Map | A map containing the configuration of a Docker Network (see: `init-network`)|
|
||||||
| `:network-aliases` | Map | A list of alias names for the container on the network |
|
| `:network-aliases` | Map | A list of alias names for the container on the network |
|
||||||
#### Result:
|
#### Result:
|
||||||
|
|
||||||
|
|
@ -121,7 +121,7 @@ Initializes a given Testcontainer, which was e.g. provided by a library
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
;; PostgreSQL container needs a separate library! This is not included.
|
;; PostgreSQL container needs a separate library! This is not included.
|
||||||
(create {:container (org.testcontainers.containers.PostgreSQLContainer)
|
(init {:container (org.testcontainers.containers.PostgreSQLContainer)
|
||||||
:exposed-ports [80]
|
:exposed-ports [80]
|
||||||
:env-vars {"MAGIC_NUMBER" "42"}
|
:env-vars {"MAGIC_NUMBER" "42"}
|
||||||
:command ["/bin/sh"
|
:command ["/bin/sh"
|
||||||
|
|
@ -140,7 +140,7 @@ Creates a testcontainer from a Dockerfile
|
||||||
| `:exposed-ports` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
|
| `:exposed-ports` | Vector with ints, mandatory | All ports which should be exposed and mapped to a local port |
|
||||||
| `:env-vars` | Map | A map with environment variables|
|
| `:env-vars` | Map | A map with environment variables|
|
||||||
| `:command` | Vector with strings | The start command of the container|
|
| `:command` | Vector with strings | The start command of the container|
|
||||||
| `:network` | | A map containing the configuration of a Docker Network (see: `init-network`)|
|
| `:network` | Map | A map containing the configuration of a Docker Network (see: `init-network`)|
|
||||||
| `:network-aliases` | Map | A list of alias names for the container on the network |
|
| `:network-aliases` | Map | A list of alias names for the container on the network |
|
||||||
#### Result:
|
#### Result:
|
||||||
|
|
||||||
|
|
@ -155,7 +155,7 @@ Creates a testcontainer from a Dockerfile
|
||||||
#### Example:
|
#### Example:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(create {:docker-file "resources/Dockerfile"
|
(create-from-docker-file {:docker-file "resources/Dockerfile"
|
||||||
:exposed-ports [5432]
|
:exposed-ports [5432]
|
||||||
:env-vars {"MAGIC_NUMBER" "42"}
|
:env-vars {"MAGIC_NUMBER" "42"}
|
||||||
:command ["/bin/sh"
|
:command ["/bin/sh"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue