Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:alpine as build
WORKDIR /go/src/github.com/ssllabs/ssllabs-scan
COPY . .
RUN apk --no-cache add git \
&& go get -u github.com/ssllabs/ssllabs-scan/...

FROM alpine:latest
COPY --from=build /go/bin/ssllabs-scan /bin/ssllabs-scan
RUN apk update \
&& apk upgrade \
&& apk add --no-cache ca-certificates \
&& update-ca-certificates 2>/dev/null || true
ENTRYPOINT ["/bin/ssllabs-scan"]
44 changes: 38 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,44 @@ https://www.ssllabs.com/about/terms.html

* Go >= 1.3

## Installation

### Prebuilt Binaries

A [precompiled version is available](https://github.com/ssllabs/ssllabs-scan/releases) with each release.

### Using Docker

1. Build the [Docker](https://docs.docker.com/) image:

```bash
sudo docker build -t ssllabs-scan https://github.com/ssllabs/ssllabs-scan.git
```

2. Run the Docker image:

```bash
sudo docker run ssllabs-scan example.com
```

### From Source

If you prefer to build your own binary from the latest release of the source code, make sure you have a correctly configured **Go >= 1.3** environment. More information about how to achieve this can be found [on the golang website.](https://golang.org/doc/install) Then, take the following steps:

1. Download ssllabs-scan:

```bash
go get -u github.com/ssllabs/ssllabs-scan/...
```

2. If you wish to rebuild the binaries from the source code:

```bash
cd $GOPATH/src/github.com/ssllabs/ssllabs-scan

go install ./...
```

## Usage

SYNOPSIS
Expand All @@ -46,9 +84,3 @@ OPTIONS
## Third-Party Tools and Libraries

A list of libraries and tools that rely on the SSL Labs APIs can be found on the SSL Labs web site: https://www.ssllabs.com/projects/ssllabs-apis/

## Docker

Docker images for this project are available at:

* [https://github.com/jumanjihouse/docker-ssllabs-scan](https://github.com/jumanjihouse/docker-ssllabs-scan)