From 7c835470be39edc3c84ac55a0ecba1abd0cf70de Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 27 Nov 2020 16:53:28 +0100 Subject: [PATCH] Consolidate docker sections in Readme.md and Dockerfile.md see #1791 --- Dockerfile.md | 41 ++++++++++++++++++++++++++++++----------- Readme.md | 20 +++++++------------- 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/Dockerfile.md b/Dockerfile.md index bbdf371..cc8ec6b 100644 --- a/Dockerfile.md +++ b/Dockerfile.md @@ -1,7 +1,26 @@ -## Usage: +## Usage + +### From git directory -(in git directory): ``` +git checkout 3.0 +git pull +docker build . +``` + +Catch is when you run without image tags you need to catch the ID when building + +``` +[..] +---> 889fa2f99933 +Successfully built 889fa2f99933 +``` + +More comfortable is + +``` +git checkout 3.0 +git pull docker build -t mytestssl . docker run --rm -t mytestssl example.com ``` @@ -13,22 +32,22 @@ docker run -t mytestssl --help docker run --rm -t mytestssl -p --header example.com ``` -or pull the image from dockerhub and run: +### From dockerhub + +You can pull the image from dockerhub and run: ``` -docker run --rm -t drwetter/testssl.sh --pfs example.com +docker run --rm -t drwetter/testssl.sh:3.0 --fs example.com ``` -Tags supported are: ``latest``, ``stable`` which _for now_ are all the same and point to ``3.0``. +Other tags supported are: ``3.1dev`` and ``latest``. They the same, i.e. the rolling release. ``3.0`` is the latest stable version from git which might have a few improvements (see git log) over the released 3.0.X. -``docker run --rm -t drwetter/testssl.sh:stable example.com``. +``docker run --rm -t drwetter/testssl.sh:3.0 example.com``. -And for the indomitable users who prefer to run old stuff you can use the tag ``2.9.5``. Please note ``2.9dev`` should not be used anymore. - -Keep in mind that any output file (--log, --html, --json etc.) will be created in the container. If you wish to have this created in a local directory you can mount a volume into the container and change the output prefix where the container user has write access to, e.g.: +Keep in mind that any output file (--log, --html, --json etc.) will be created in the container. If you wish to have this created in a local directory on your host you can mount a volume into the container and change the output prefix where the container user has write access to, e.g.: ``` -docker run --rm -t -v /tmp:/data drwetter/testssl.sh --htmlfile /data/ example.com +docker run --rm -t -v /tmp:/data drwetter/testssl.sh:3.0 --htmlfile /data/ example.com ``` -which writes the output to ``/tmp/example.com_p443--