Fix Dockerfile breaking upon Java and Maven repo changes
Bug description
As per PR #878, the Dockerfile is subject to breaking due to Oracle Java and Maven upstream repo changes. This bug is to track the work necessary to move Java8 and Maven to a separate container. This will allow us to compile IRI at any point in time with a safe and tested java and maven version
Hardware Spec
NA
Steps To Reproduce
- git clone iotaledger/iri.git
- docker build -f Dockerfile account/repo:tag .
- if either the Ubuntu java oracle PPA maintainers or the maven version we're after at https://apache.osuosl.org/maven/maven-3/ is no longer available, the build will fail. Currently Maven got upgraded to 3.5.4 upstream and the version 3.5.3 we reference is no longer available
Expected behaviour
IRI should build as a docker container irrespective of what upstream repos say.
Actual behavior
The docker container fails to build
Errors
Step 12/21 : RUN mkdir -p /usr/share/maven /usr/share/maven/ref && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz && echo "${SHA} /tmp/apache-maven.tar.gz" | sha256sum -c - && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 && rm -f /tmp/apache-maven.tar.gz && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn ---> Running in 73a4cf032863 curl: (22) The requested URL returned error: 404 Not Found
Am I planning to do it myself with a PR?
Yes.