diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e3308f2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM strongdm/pandoc:latest + +# based on implementation by James Gregory +MAINTAINER Comply + +RUN apt-get update -y \ + && apt-get install -y curl + +ENV COMPLY_VERSION "1.3.7" + +# install comply binary +RUN curl -J -L -o /tmp/comply.tgz https://github.com/strongdm/comply/releases/download/v${COMPLY_VERSION}/comply-v${COMPLY_VERSION}-linux-amd64.tgz \ + && tar -xzf /tmp/comply.tgz \ + && mv ./comply-v${COMPLY_VERSION}-linux-amd64 /usr/local/bin/comply + +WORKDIR /source + +ENTRYPOINT ["/bin/bash"] \ No newline at end of file diff --git a/README.md b/README.md index d08d20c..f89fcf6 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,23 @@ COMMANDS: todo list declared vs satisfied compliance controls help, h Shows a list of commands or help for one command ``` + +## Running in Docker + +Comply is currently only released for Linux and macOS, however from other operating systems it's possible to run using Docker: + +``` +# using the included Dockerfile in the root of this project +$ docker build -t comply . + +# from an empty directory that will contain your comply project +$ docker run -it --rm -v "$PWD":/source comply +$ docker init +``` + +For Windows users, replace $PWD with the full path to your project directory + + ## Ticketing Integrations: - Jira - Github