Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ install:
script:
- docker run -d -p 8080:8080 --name cfssl-exec-$TRAVIS_BUILD_NUMBER -t $TRAVIS_BUILD_NUMBER
- sleep 5
- curl --fail https://localhost:8080/
- curl -k --fail https://localhost:8080/
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM golang:alpine
MAINTAINER Dave Lasley <[email protected]>

ENV RO_CERTPASSWD="password" \
RO_COMMONNAME="localhost" \
RO_DATA="/var/lib/redoctober/data"

ENV RO_CERTS="${RO_DATA}/server.crt" \
RO_KEYS="${RO_DATA}/server.pem"

RUN addgroup -S redoctober \
&& adduser -S -g redoctober redoctober

# Install Build Dependencies
ENV buildDeps "build-base \
gcc \
git \
libtool"

RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories

RUN apk add --no-cache $buildDeps \
runit \
openssl

# Install Red October
RUN git clone --depth=1 https://github.com/cloudflare/redoctober.git $GOPATH/src/github.com/cloudflare/redoctober \
&& go install github.com/cloudflare/redoctober

RUN apk del $buildDeps

# Setup Environment

ENTRYPOINT ["/go/src/github.com/cloudflare/redoctober/scripts/docker-entrypoint.sh"]

CMD ["redoctober", \
"-addr=0.0.0.0:8080", \
"-vaultpath=/var/lib/redoctober/data/diskrecord.json", \
"-certs=/var/lib/redoctober/data/server.crt", \
"-keys=/var/lib/redoctober/data/server.pem", \
"-metrics-host=0.0.0.0", \
"-metrics-port=8081"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ pleasure:

| Name | Default | Description |
|------|---------|-------------|

| RO_CERTPASSWD | password | Password for the Red October certificate |
| RO_COMMONNAME | localhost | Common Name for the server |
| RO_DATA | /var/lib/redoctober/data | Where to store all of the data |

Known Issues / Roadmap
======================
Expand Down