Skip to content

Commit

Permalink
Add dockerfile (from lmenezes/cerebro#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
moliware committed Jun 21, 2018
0 parents commit 1fb0206
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM openjdk:8-jre-alpine

ENV CEREBRO_VERSION 0.8.1

RUN apk add --no-cache bash \
&& mkdir -p /opt/cerebro/logs \
&& wget -qO- https://github.com/lmenezes/cerebro/releases/download/v${CEREBRO_VERSION}/cerebro-${CEREBRO_VERSION}.tgz \
| tar xzv --strip-components 1 -C /opt/cerebro \
&& sed -i '/<appender-ref ref="FILE"\/>/d' /opt/cerebro/conf/logback.xml \
&& addgroup -g 1000 cerebro \
&& adduser -D -G cerebro -u 1000 cerebro \
&& chown -R cerebro:cerebro /opt/cerebro

WORKDIR /opt/cerebro
EXPOSE 9000
USER cerebro
ENTRYPOINT [ "/opt/cerebro/bin/cerebro" ]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cerebro-docker
--------------

cerebro-docker contains the official docker files for [cerebro](https://github.com/lmenezes/cerebro)

0 comments on commit 1fb0206

Please sign in to comment.