Skip to content

Commit dc08a12

Browse files
authored
Merge pull request #1793 from drwetter/docker_docu_polish3.0
Consolidate docker sections in Readme.md and Dockerfile.md (3.0)
2 parents 7dac1a2 + 7c83547 commit dc08a12

2 files changed

Lines changed: 37 additions & 24 deletions

File tree

Dockerfile.md

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
1-
## Usage:
1+
## Usage
22

3-
(in git directory):
3+
### From git directory
4+
5+
```
6+
git checkout 3.0
7+
git pull
8+
docker build .
9+
```
10+
11+
Catch is when you run without image tags you need to catch the ID when building
12+
13+
```
14+
[..]
15+
---> 889fa2f99933
16+
Successfully built 889fa2f99933
417
```
18+
19+
More comfortable is
20+
21+
```
22+
git checkout 3.0
23+
git pull
524
docker build -t mytestssl .
625
docker run --rm -t mytestssl example.com
726
```
@@ -13,22 +32,22 @@ docker run -t mytestssl --help
1332
docker run --rm -t mytestssl -p --header example.com
1433
```
1534

16-
or pull the image from dockerhub and run:
35+
### From dockerhub
36+
37+
You can pull the image from dockerhub and run:
1738

1839
```
19-
docker run --rm -t drwetter/testssl.sh --pfs example.com
40+
docker run --rm -t drwetter/testssl.sh:3.0 --fs example.com
2041
```
2142

22-
Tags supported are: ``latest``, ``stable`` which _for now_ are all the same and point to ``3.0``.
23-
24-
``docker run --rm -t drwetter/testssl.sh:stable example.com``.
43+
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.
2544

26-
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.
45+
``docker run --rm -t drwetter/testssl.sh:3.0 example.com``.
2746

28-
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.:
47+
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.:
2948

3049
```
31-
docker run --rm -t -v /tmp:/data drwetter/testssl.sh --htmlfile /data/ example.com
50+
docker run --rm -t -v /tmp:/data drwetter/testssl.sh:3.0 --htmlfile /data/ example.com
3251
```
3352

34-
which writes the output to ``/tmp/example.com_p443-<date>-<time>.html.`` The uid/gid is the one from the docker user but normally the file is 644. testssl.sh's docker container uses a non-root user (usually with user/groupid 1000:1000).
53+
which writes the HTML output to ``/tmp/example.com_p443-<date>-<time>.html.`` The uid/gid is the one from the docker user but normally the file is 644. testssl.sh's docker container uses a non-root user (usually with user/groupid 1000:1000).

Readme.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ to get bugfixes, other feedback and more contributions.
3636
testssl.sh is working on every Linux/BSD distribution out of the box. Latest by 2.9dev
3737
most of the limitations of disabled features from the openssl client are gone
3838
due to bash-socket-based checks. As a result you can also use e.g. LibreSSL or OpenSSL
39-
1.1.1 . testssl.sh also works on other unixoid system out of the box, supposed they have
39+
1.1.1 . testssl.sh also works on other unixoid systems out of the box, supposed they have
4040
`/bin/bash` >= version 3.2 and standard tools like sed and awk installed. An implicit
4141
(silent) check for binaries is done when you start testssl.sh . System V needs probably
4242
to have GNU grep installed. MacOS X and Windows (using MSYS2, Cygwin or WSL) work too.
@@ -49,32 +49,26 @@ You can download testssl.sh by cloning this git repository:
4949

5050
git clone --depth 1 https://github.com/drwetter/testssl.sh.git
5151

52-
and checkout the 3.0 branch. For this stable version you also can help yourself by downloading the [ZIP](https://github.com/drwetter/testssl.sh/archive/3.0.2.zip) or [tar.gz](https://github.com/drwetter/testssl.sh/archive/3.0.2.zip) archive. Then
53-
just ``cd`` to the directory created (=INSTALLDIR) and run it off there.
52+
and checkout the 3.0 branch. For the stable version help yourself by downloading the [ZIP](https://codeload.github.com/drwetter/testssl.sh/zip/3.0.4) or [tar.gz](https://codeload.github.com/drwetter/testssl.sh/tar.gz/3.0.4) archive. Just ``cd`` to the directory created (=INSTALLDIR) and run it off there.
5453

5554
#### Docker
5655

57-
Testssl.sh has minimal requirements. As stated you don't have to install or build anything. You can just run it from the pulled/cloned directory. Still if you don't want to pull the github repo to your directory of choice you can pull a container from dockerhub and run it:
56+
Testssl.sh has minimal requirements. As stated you don't have to install or build anything. You can just run it from the pulled/cloned directory. Still if you don't want to pull the github repo to your directory of choice you can pull a container from dockerhub and run it:
5857
```
5958
docker run --rm -ti drwetter/testssl.sh:3.0 <your_cmd_line>
6059
```
61-
Or if you have cloned this repo you also can just ``cd`` to the INSTALLDIR and run
60+
Or if you have cloned this repo you also can just ``cd`` to the INSTALLDIR (change to 3.0, do a git pull) and run
6261
```
63-
docker build .
62+
docker build . -t drfooimage && docker run --rm -t drfooimage example.com
6463
```
6564

66-
followed by ``docker run -ti <ID> <your_cmd_line>`` where ``ID`` is the identifier in the last line from the build command like
67-
68-
```
69-
---> 889fa2f99933
70-
Successfully built 889fa2f99933
71-
```
65+
For more please consult [Dockerfile.md](https://github.com/drwetter/testssl.sh/blob/3.0/Dockerfile.md).
7266

7367
### Status
7468

7569
This is the stable 3.0 version. That means you can and should use it for production and let us know if you encounter any additional bugs. Features implemented in 3.0 are listed in the [Changelog](https://github.com/drwetter/testssl.sh/blob/3.0/CHANGELOG.md). Support for 2.9.5 has been dropped.
7670

77-
The version 3.0 will receive bugfixes, labled as 3.0.1, 3.0.2 and so on. This will happen until 3.2 is released. Development is taking place in the [3.1dev](https://github.com/drwetter/testssl.sh/tree/3.1dev) branch which will eventually lead to version 3.2. We try to keep 3.1dev as solid as possible but things will certainly change in 3.1dev. Think of the 3.1dev branch like a rolling release.
71+
The version 3.0 receives bugfixes, labeled as 3.0.1, 3.0.2 and so on. This will happen until 3.2 is released. Development is taking place in the [3.1dev](https://github.com/drwetter/testssl.sh/tree/3.1dev) branch which will eventually lead to version 3.2. We try to keep 3.1dev as solid as possible but things will certainly change in 3.1dev. Think of the 3.1dev branch like a rolling release.
7872

7973

8074
### Documentation

0 commit comments

Comments
 (0)