Skip to content

Commit

Permalink
Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Weiss committed Feb 17, 2017
1 parent 5b41cc5 commit 84971d9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
circleci/
docs/
exampleplugin/
fixtures/
.codeclimate.yml
.git
.gitignore
.goxc.json
appveyor.yml
circle.yml
CONTRIBUTING.md
release.sh
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM golang:1.7-alpine
RUN apk add --no-cache git
WORKDIR /go/src/github.com/opencontrol/compliance-masonry
ADD . .
RUN go install
ENTRYPOINT ["/go/bin/compliance-masonry"]
8 changes: 8 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@

The `get` command will retrieve dependencies needed to compile documentation in an `opencontrols/` folder. You will probably want to exclude this from your version control system (e.g. add `opencontrols/` to your `.gitignore`).

## Docker

Compliance Masonry has also been packaged as a Docker image and published on [Docker Hub](https://hub.docker.com/r/opencontrolorg/compliance-masonry). Commands can be run with Docker in the directory containing `opencontrol.yaml` as follows:

```bash
docker run --rm -v "$PWD":/opencontrol -w /opencontrol opencontrolorg/compliance-masonry get
```

## GitBook

To view the compliance documentation as a web site or a PDF, see the [GitBook](gitbook.md) documentation.
Expand Down

0 comments on commit 84971d9

Please sign in to comment.