Skip to content
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

docker:build failure #8

Open
LouisSavoldy opened this issue Feb 28, 2019 · 3 comments
Open

docker:build failure #8

LouisSavoldy opened this issue Feb 28, 2019 · 3 comments

Comments

@LouisSavoldy
Copy link

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project configurationserver-spmia-ch3: Exception caught: The command '/bin/sh -c cd /tmp/ && curl -k -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip' returned a non-zero code: 1 -> [Help 1]

Looks like Oracle added an additional redirect (302) from that URL which curl is not fully traversing. Use this URL instead: https://edelivery.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip

@klearchos
Copy link

klearchos commented Jun 28, 2019

Hi,
I haven't tried your solution (that could also be 100% ok) but I have change the curl with wget and it works.
Here is the SO link that refers to this.

    wget "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" --header "Cookie: oraclelicense=accept-securebackup-cookie" && \

@lukepunnett
Copy link

@klearchos - Thanks for the help - this one helped me also. I also commented on your merge request - hopefully, this all gets updated.

@silver-mx
Copy link

In my case I had issues when installing ths JCE and the quickest solution was to change the Dockerfile for confsrv as follows:

FROM openjdk:14-ea-8-jdk-alpine
RUN  apk update && apk upgrade && apk add netcat-openbsd
RUN mkdir -p /usr/local/configserver
RUN echo $JAVA_HOME
ADD  @[email protected] /usr/local/configserver/
ADD run.sh run.sh
RUN chmod +x run.sh
CMD ./run.sh

the change uses an alpine docker image with java 14 which does not need JCE (Java Cryptography Extension). The change requires to add the following dependency in the pom.xml for confsrv.

    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.3.1</version>
    </dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants