From 736d06563c6a697f6cb32b16636039ea067751bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Z=C3=B6ller?= Date: Sat, 6 Jun 2020 17:35:43 +0200 Subject: [PATCH] #7 - Doc fixes --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d09003..a27341b 100644 --- a/README.md +++ b/README.md @@ -58,10 +58,12 @@ Creates a testcontainers instance and returns them :exposed-ports [80] :env-vars {"MAGIC_NUMBER" "42" :command ["/bin/sh" - "-c" - "while true; do echo \"$MAGIC_NUMBER\" | nc -l -p 80; done"]}) + "-c" + "while true; do echo \"$MAGIC_NUMBER\" | nc -l -p 80; done"]}) ``` +--- + ### start! Starts the Testcontainer, which was defined by `create` @@ -92,6 +94,9 @@ Starts the Testcontainer, which was defined by `create` (start! container) ``` +--- + + ### stop! Stops the Testcontainer, which was defined by `create` @@ -116,6 +121,9 @@ The `container-config` (stop! container) ``` +--- + + ### map-classpath-resource! Maps a resource from your classpath into the containers file system @@ -142,6 +150,9 @@ The `container-config` :mode :read-only}) ``` +--- + + ### bind-filesystem! Binds a path from your local filesystem into the Docker container as a volume @@ -168,6 +179,9 @@ The `container-config` :mode :read-only}) ``` +--- + + ### copy-file-to-container! Copies a file from your filesystem or classpath into the running container @@ -194,6 +208,9 @@ The `container-config` :type :host-path}) ``` +--- + + ### execute-command! Executes a command in the running container, and returns the result