Skip to content

Instantly share code, notes, and snippets.

@mahasak
Created July 11, 2019 12:20
Show Gist options
  • Save mahasak/89df08229d67f1695f0bc8c1cab09d3b to your computer and use it in GitHub Desktop.
Save mahasak/89df08229d67f1695f0bc8c1cab09d3b to your computer and use it in GitHub Desktop.
Docker JDK 1.4
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
@fw-aaron
Copy link

fw-aaron commented Apr 8, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment