-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Initial version of Red October container
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters