This repository was archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dockerfile that builds DataHelix inside its own dockerfile envi…
…ronment and generates a docker container that only contains the fatJar executable and the Java 8 JRE.
- Loading branch information
Showing
2 changed files
with
26 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,23 @@ | ||
FROM openjdk:8u212-jdk-stretch AS build | ||
|
||
WORKDIR /root | ||
|
||
ENV GRADLE_HOME /opt/gradle | ||
ENV GRADLE_VERSION 5.4.1 | ||
|
||
RUN wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" | ||
RUN unzip gradle.zip | ||
RUN rm gradle.zip | ||
RUN mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" | ||
RUN ln --symbolic "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle | ||
|
||
COPY . /root/ | ||
|
||
RUN gradle fatJar | ||
|
||
FROM openjdk:8u212-jre-alpine | ||
|
||
WORKDIR /root | ||
COPY --from=build /root/orchestrator/build/libs/generator.jar . | ||
|
||
ENTRYPOINT ["java", "-jar", "generator.jar"] |
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,3 @@ | ||
#! /bin/bash | ||
|
||
docker build . --tag "datahelix" |