diff --git a/bb.edn b/bb.edn index 0f1f5bd8..22f02108 100644 --- a/bb.edn +++ b/bb.edn @@ -75,7 +75,7 @@ "docker run -it --rm -v" (cond-> [(str (fs/cwd) ":/etaoin") "-w" "/etaoin"] - (when-not (seq *command-line-args*)) (conj "--entrypoint" "/bin/bash") + (not (seq *command-line-args*)) (conj "--entrypoint" "/bin/bash") :always (conj "etaoin:latest") :always (concat *command-line-args*)))} ci-release {:doc "release tasks, use --help for args" diff --git a/doc/02-developer-guide.adoc b/doc/02-developer-guide.adoc index 4df7bb59..3bd7558e 100644 --- a/doc/02-developer-guide.adoc +++ b/doc/02-developer-guide.adoc @@ -142,17 +142,22 @@ bb docker-build TIP: This will build a docker image with current releases of Chrome, Firefox and their respective WebDrivers. Rerun the command as necessary. -You can use this image interactively: +You can run a single command and exit: +[source,shell] +---- +bb docker-run bb test:bb --suites unit +---- + +Or use the docker image interactively: [source,shell] ---- bb docker-run -bb test all ---- -Or you can use it to run a single command: +And then at the interactive prompt: [source,shell] ---- -bb docker-run bb test all +bb test:jvm --suites ide --browsers firefox ---- NOTE: `docker-run` plunks you automatically into `/etaoin` which maps to the etaoin project root @@ -163,7 +168,7 @@ Feel free to run docker commands directly if that is more your thing. === WebDriver Processes -Sometimes WebDriver process might hang around longer than you'd like. +Sometimes WebDriver processes might hang around longer than you'd like. To list them: [source,shell]