1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AdoptOpenJDK 11(11.0.2)をDockerイメージで検証してみた

Last updated at Posted at 2019-01-22

#Java11でHTTP通信時の不具合が11.0.2で修正された!
下記エラーのため通信できない・・・
https://stackoverflow.com/questions/52016415/jdk-11-ssl-error-on-valid-certificate-working-in-previous-versions

Exception in thread “main” javax.net.ssl.SSLHandshakeException: extension (10) should not be presented in server_hello

#Dockerイメージ
https://hub.docker.com/r/adoptopenjdk/openjdk11

#準備
Dockerfile

FROM adoptopenjdk/openjdk11:latest
RUN mkdir /opt/app
COPY hoge.jar /opt/app
CMD ["java", "-jar", "/opt/app/hoge.jar"]
$ docker build -t japp .
$ docker run -it --rm japp

#注意点
くだらないことですが、、
Dockerfileの階層にhoge.jarを配置しないと
COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXXX/xxx no such file or directory
のようなエラーがでてしまいます。

#結果
今回はHTTP通信の結果を出力するだけのコードの記述のみなので、
コンソールにresponseが出力されることをもって通信成功を確認しました。

スクリーンショット 2019-01-22 14.55.56.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?