I had the following docker configuration:
FROM openjdk:8
ADD *.jar /service.jar
VOLUME /tmp
EXPOSE 8080
# Set timezone CET (DE Time)
ENV TZ=CET
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
CMD echo "The Service will start..." && \
java -DsocksProxyHost=192.168.1.250 -Dhttp.nonProxyHosts="192.168.1.5|192.168.1.36" -jar /service.jar
The problem I have with this is the non proxy is totally ignored in java 8. If I switch into openjdk:9 is working fine, but I cannot do that because the service has stuff that is strongly depends on jdk 8.
I tried without quoting, escaping the pipe character but nothing :(
Somebody has this strange problem, and a solution/workaround for that?
You are on Debian 10 (buster), but the link you showed is for Debian 9 (stretch). OpenJDK is on version 11 for Buster and OpenJDK 8 is not available. If you need this, use a docker image based on Stretch. Show activity on this post.
You are on Debian 10 (buster), but the link you showed is for Debian 9 (stretch). OpenJDK is on version 11 for Buster and OpenJDK 8 is not available. If you need this, use a docker image based on Stretch. Show activity on this post. Apparently Debian 10 alias Buster only provides openjdk 11 packages.
Done E: Unable to locate package openjdk-8-jre Any ideas? I've been trying to figure this out for like 4 hours now. Show activity on this post. OpenJDK8 is not included in Ubuntu 14.04 repositories. You can install Openjdk8 to Ubuntu 14.04 from a PPA this way:
Removing the -Dhttp.nonProxyHosts setting from the Java arguments allows for Bitbucket Server to communicate with the servers correctly (but causes features like manage add-ons to loose connection to the Marketplace. The -Dhttp.nonProxyHosts setting for Java are defined incorrectly -Dhttp.nonProxyHosts=localhost|additionalhost1|*. yourdoman.com
Solved!
After studying the sources of openjdk8 and openjdk9 I figured out I need to specify twice the non proxy ip list. So the solution for openjdk8 is:
java -DsocksProxyHost=192.168.1.250 -Dhttp.nonProxyHosts="192.168.1.5|192.168.1.36" -DsocksNonProxyHosts="192.168.1.5|192.168.1.36" -jar /service.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With