Fix unbalanced parens and braces (#52)

This commit is contained in:
Gilles Philippart 2021-06-01 18:52:04 +01:00 committed by GitHub
parent 12c4b6c1e9
commit b13499bc7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ The library provides a set of functions to interact with the testcontainers. A s
(tc/bind-filesystem! {:host-path "/tmp" (tc/bind-filesystem! {:host-path "/tmp"
:container-path "/opt" :container-path "/opt"
:mode :read-only}) :mode :read-only})
(tc/start!)) (tc/start!)))
(do-database-testing (:host container) (do-database-testing (:host container)
(get (:mapped-ports container) 5432)) (get (:mapped-ports container) 5432))
@ -39,7 +39,7 @@ If you'd rather create a container from a Dockerfile in your project, it could l
(def container (-> (tc/create-from-docker-file {:env-vars {"FOO" "bar"} (def container (-> (tc/create-from-docker-file {:env-vars {"FOO" "bar"}
:exposed-ports [80] :exposed-ports [80]
:docker-file "resources/Dockerfile"}) :docker-file "resources/Dockerfile"})
(tc/start!)) (tc/start!)))
``` ```
If you prefer to use prebuilt containers from the Testcontainers project, you can do it like this If you prefer to use prebuilt containers from the Testcontainers project, you can do it like this
@ -50,7 +50,7 @@ If you prefer to use prebuilt containers from the Testcontainers project, you ca
(def container (-> (tc/init {:container (PostgreSQLContainer. "postgres:12.2") (def container (-> (tc/init {:container (PostgreSQLContainer. "postgres:12.2")
:exposed-ports [5432]}) :exposed-ports [5432]})
(tc/start!)) (tc/start!)))
``` ```
## Functions and Properties ## Functions and Properties
@ -227,7 +227,7 @@ Starts the Testcontainer, which was defined by `create`
```clojure ```clojure
(def container (create {:image-name "alpine:3.2" (def container (create {:image-name "alpine:3.2"
:exposed-ports [80] :exposed-ports [80]
:env-vars {"MAGIC_NUMBER" "42"}) :env-vars {"MAGIC_NUMBER" "42"}}))
(start! container) (start! container)
``` ```
@ -253,7 +253,7 @@ The `container-config`
```clojure ```clojure
(def container (create {:image-name "alpine:3.2" (def container (create {:image-name "alpine:3.2"
:exposed-ports [80] :exposed-ports [80]
:env-vars {"MAGIC_NUMBER" "42"}) :env-vars {"MAGIC_NUMBER" "42"}}))
(start! container) (start! container)
(stop! container) (stop! container)
@ -402,7 +402,7 @@ Creates a network. The optional map accepts config values for enabling ipv6 and
```clojure ```clojure
;;Create with config ;;Create with config
(create-network {:ipv6 false (create-network {:ipv6 false
:driver "overlay") :driver "overlay"})
;;Create with default config ;;Create with default config
(create-network) (create-network)