-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 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,21 @@ | ||
| FROM centos:latest | ||
|
|
||
| # Install needed utils | ||
| RUN rm -fr /var/cache/yum/* && yum clean all && yum -y install --setopt=tsflags=nodocs epel-release && \ | ||
| yum -y install wget zip unzip rsync openssl && \ | ||
| yum -y clean all | ||
|
|
||
| #download/install JRE | ||
| ENV JAVA_HOME /usr/java/latest | ||
| RUN wget -nv --no-cookies --no-check-certificate "http://javadl.oracle.com/webapps/download/AutoDL?BundleId=225344_090f390dda5b47b9b721c7dfaa008135" -O /tmp/jre-8u144-linux-x64.rpm && \ | ||
| yum -y install /tmp/jre-8u144-linux-x64.rpm && \ | ||
| rm -f /tmp/jre-8u144-linux-x64.rpm && \ | ||
| alternatives --install /usr/bin/java jar $JAVA_HOME/bin/java 200000 && \ | ||
| alternatives --install /usr/bin/javaws javaws $JAVA_HOME/bin/javaws 200000 && \ | ||
| alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 200000 | ||
|
|
||
| #copy files | ||
| RUN mkdir -p /output && mkdir -p /scriptrun | ||
| COPY configBuilder.sh /scriptrun | ||
|
|
||
| CMD /scriptrun/configBuilder.sh |