-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): Add Dockerfiles. (#274)
- Loading branch information
Matt Duftler
committed
Apr 2, 2018
1 parent
3e6d82f
commit 0260b6e
Showing
2 changed files
with
23 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,14 @@ | ||
FROM openjdk:8 | ||
|
||
MAINTAINER delivery-engineering@netflix.com | ||
|
||
COPY . workdir/ | ||
|
||
WORKDIR workdir | ||
|
||
RUN GRADLE_USER_HOME=cache ./gradlew buildDeb -x test && \ | ||
dpkg -i ./kayenta-web/build/distributions/*.deb && \ | ||
cd .. && \ | ||
rm -rf workdir | ||
|
||
CMD ["/opt/kayenta/bin/kayenta"] |
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,9 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
MAINTAINER delivery-engineering@netflix.com | ||
|
||
COPY ./kayenta-web/build/install/kayenta /opt/kayenta | ||
|
||
RUN apk --nocache add --update bash | ||
|
||
CMD ["/opt/kayenta/bin/kayenta"] |