Skip to content

Update jdk8 url #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 6.0-marshmallow
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections && \

# Keep the dependency list as short as reasonable
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y bc bison bsdmainutils build-essential curl \
flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses5-dev \
lib32readline-gplv2-dev lib32z1-dev libesd0-dev libncurses5-dev \
Expand All @@ -26,17 +27,17 @@ RUN chmod 755 /usr/local/bin/*
# Install latest version of JDK
# See http://source.android.com/source/initializing.html#setting-up-a-linux-build-environment
WORKDIR /tmp
RUN curl -O http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb && \
curl -O http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u45-b14-1_amd64.deb && \
curl -O http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u45-b14-1_amd64.deb && \
sum=`shasum ./openjdk-8-jre-headless_8u45-b14-1_amd64.deb | awk '{ print $1 }'` && \
[ $sum == "e10d79f7fd1b3d011d9a4910bc3e96c3090f3306" ] || \
RUN curl -O http://old-releases.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb && \
curl -O http://old-releases.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u45-b14-1_amd64.deb && \
curl -O http://old-releases.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u45-b14-1_amd64.deb && \
sum=`sha256sum ./openjdk-8-jre-headless_8u45-b14-1_amd64.deb | awk '{ print $1 }'` && \
[ $sum == "0f5aba8db39088283b51e00054813063173a4d8809f70033976f83e214ab56c0" ] || \
( echo "Hash mismatch. Problem downloading openjdk-8-jre-headless" ; exit 1; ) && \
sum=`shasum ./openjdk-8-jre_8u45-b14-1_amd64.deb | awk '{ print $1 }'` && \
[ $sum == "1e083bb952fc97ab33cd46f68e82688d2b8acc34" ] || \
sum=`sha256sum ./openjdk-8-jre_8u45-b14-1_amd64.deb | awk '{ print $1 }'` && \
[ $sum == "9ef76c4562d39432b69baf6c18f199707c5c56a5b4566847df908b7d74e15849" ] || \
( echo "Hash mismatch. Problem downloading openjdk-8-jre" ; exit 1; ) && \
sum=`shasum ./openjdk-8-jdk_8u45-b14-1_amd64.deb | awk '{ print $1 }'` && \
[ $sum == "772e904961a2a5c7d2d129bdbcfd5c16a0fab4bf" ] || \
sum=`sha256sum ./openjdk-8-jdk_8u45-b14-1_amd64.deb | awk '{ print $1 }'` && \
[ $sum == "6e47215cf6205aa829e6a0a64985075bd29d1f428a4006a80c9db371c2fc3c4c" ] || \
( echo "Hash mismatch. Problem downloading openjdk-8-jdk" ; exit 1; ) && \
dpkg -i *.deb && \
apt-get -f install && \
Expand Down