Fix the example in README (#10)

This commit is contained in:
Burin Choomnuan 2020-07-05 08:39:17 -04:00 committed by GitHub
parent a5a78008ba
commit c0628d648f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,9 +21,9 @@ The library provides a set of functions to interact with the testcontainers. A s
(def container (-> (tc/create {:image-name "postgres:12.1" (def container (-> (tc/create {:image-name "postgres:12.1"
:exposed-ports [5432] :exposed-ports [5432]
:env-vars {"POSTGRES_PASSWORD" "verysecret"}}) :env-vars {"POSTGRES_PASSWORD" "verysecret"}})
(tc/configure-volume! {:file-system-bind {: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)