mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-10 18:50:58 +01:00
Backport of Alpine Linux Dockerfile from 2.9dev
This commit is contained in:
parent
c004469e0f
commit
f7288fd4bf
17
Dockerfile
17
Dockerfile
@ -1,13 +1,18 @@
|
|||||||
FROM debian:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git bsdmainutils ldnsutils procps
|
RUN apk update && apk upgrade
|
||||||
|
RUN apk add bash procps drill git coreutils
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/drwetter/testssl.sh.git /testssl.sh/
|
RUN addgroup testssl
|
||||||
|
RUN adduser -G testssl -g "testssl user" -s /bin/bash -D testssl
|
||||||
|
|
||||||
RUN ln -s /testssl.sh/testssl.sh /usr/local/bin/
|
RUN ln -s /home/testssl/testssl.sh /usr/local/bin/
|
||||||
|
|
||||||
WORKDIR /testssl.sh/
|
USER testssl
|
||||||
|
WORKDIR /home/testssl/
|
||||||
|
|
||||||
ENTRYPOINT ["testssl.sh","--openssl","/testssl.sh/bin/openssl.Linux.x86_64"]
|
RUN git clone --depth=1 https://github.com/drwetter/testssl.sh.git .
|
||||||
|
|
||||||
|
ENTRYPOINT ["testssl.sh"]
|
||||||
|
|
||||||
CMD ["--help"]
|
CMD ["--help"]
|
||||||
|
28
Dockerfile.md
Normal file
28
Dockerfile.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
## Usage:
|
||||||
|
|
||||||
|
(in git directory):
|
||||||
|
```
|
||||||
|
docker build -t mytestssl .
|
||||||
|
docker run -t mytestssl example.com
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also supply command line options like:
|
||||||
|
|
||||||
|
``docker run -t mytestssl -p --header example.com``
|
||||||
|
|
||||||
|
Please keep in mind that any output file (--log, --html, --json etc.) will be created
|
||||||
|
in the container.
|
||||||
|
|
||||||
|
|
||||||
|
You can also pull the image from docker hub, then run:
|
||||||
|
```
|
||||||
|
docker run -t drwetter/testssl.sh --pfs example.com
|
||||||
|
```
|
||||||
|
|
||||||
|
Also if you don't provide a user, this docker container uses
|
||||||
|
a non-root user.
|
||||||
|
|
||||||
|
This is an experimental version with Alpine Linux. Don\'t rely on it!
|
||||||
|
|
||||||
|
Besides the "latest" branch supported tags are currently "2.9dev" (equal to "latest"), and
|
||||||
|
"2.9.5" = "stable": ``docker run -t drwetter/testssl.sh:stable example.com``.
|
Loading…
Reference in New Issue
Block a user