Skip to content

Commit

Permalink
[ADD] Initial version of Red October container
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Jan 3, 2017
1 parent 5befc7d commit b2fa2f2
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
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/
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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 \
runit"

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

RUN apk add --no-cache $buildDeps \
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

0 comments on commit b2fa2f2

Please sign in to comment.