Created
July 11, 2019 12:20
-
-
Save mahasak/89df08229d67f1695f0bc8c1cab09d3b to your computer and use it in GitHub Desktop.
Docker JDK 1.4
This file contains hidden or 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
FROM centos:5 | |
RUN yum -y install ld-linux.so.2 | |
ADD ./j2sdk-1_4_2_19-linux-i586-rpm.bin / | |
RUN chmod +x /j2sdk-1_4_2_19-linux-i586-rpm.bin | |
RUN (echo yes) | sh /j2sdk-1_4_2_19-linux-i586-rpm.bin | |
RUN rpm -Uvh /j2sdk-1_4_2_19-linux-i586.rpm | |
ENV JAVA_HOME /usr/java/j2sdk1.4.2_19 | |
ENV PATH $PATH:$JAVA_HOME/bin | |
VOLUME /data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the second line says "Error: Cannot find a valid baseurl for repo: base
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/"
How did you get around this?