From dde466564659ce140fce0788b085d2e4dcd52314 Mon Sep 17 00:00:00 2001 From: Samir Talwar Date: Sat, 5 Mar 2016 16:30:50 +0000 Subject: [PATCH] Documentation: Run the Docker tests with `-it`. * `-i` will ensure that the build can be cancelled with *Ctrl+C*. * `-t` tells Docker to run as a TTY, so the test frameworks know to output colours. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 09a4b1ea..3ff4f823 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,14 @@ Mac users can add the following line to their `~/.bash_profile` file to set this ### Using Docker for tests -You can run the tests in the docker container guaranteeing a clean test environment. +You can run the tests in a Docker container to guarantee a clean test environment. - $ docker build -t sdkman-cli/testing . - $ docker run --rm sdkman-cli/testing + $ docker build --tag=sdkman-cli/testing . + $ docker run --rm -it sdkman-cli/testing By running the following command, you don't need to wait for downloading Gradle wrapper and other dependencies. The test reports can be found under the local `build` directory. - $ docker run --rm -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/testing + $ docker run --rm -it -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/testing ## Running the Server Locally