-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dockerfile (from lmenezes/cerebro#304)
- Loading branch information
0 parents
commit 1fb0206
Showing
2 changed files
with
22 additions
and
0 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
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" ] |
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,5 @@ | ||
cerebro-docker | ||
-------------- | ||
|
||
cerebro-docker contains the official docker files for [cerebro](https://github.com/lmenezes/cerebro) | ||
|