ORC-694: Update docker files for adding Java11 support#655
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Thank you for working on this, @yuokada .
BTW, do we need to change MAINTAINER in this PR?
|
@dongjoon-hyun But, we don't need to change it in this PR. Should we create another ticket to replace |
|
Shall we do that in a separate PR because it's irrelevant to Java? |
|
Created: #656 |
|
|
||
| cd docker/$os | ||
| docker build -t orc-$os . | ||
| docker build -t "orc-$os-jdk8" --build-arg jdk=8 . OR docker build -t "orc-$os-jdk11" --build-arg jdk=11 . |
There was a problem hiding this comment.
Is this change easy to understand?
There was a problem hiding this comment.
Lets make it more explicit.
For jdk8: docker build -t "orc-$os-jdk8" --build-arg jdk=8 .
For jdk11: docker build -t "orc-$os-jdk11" --build-arg jdk=11 .
| ( cd $os && docker build -t "orc-$os" . ) > logs/$os-build.log 2>&1 || exit 1 | ||
| for jdk in 8 11; do | ||
| for os in `cat os-list.txt`; do | ||
| echo "Building $os" |
There was a problem hiding this comment.
Could you show $jdk together?
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Thank you for updating, @yuokada . The PR looks good mostly. I left one minor comment about log message.
|
|
||
| cd docker/$os | ||
| docker build -t orc-$os . | ||
| docker build -t "orc-$os-jdk8" --build-arg jdk=8 . OR docker build -t "orc-$os-jdk11" --build-arg jdk=11 . |
There was a problem hiding this comment.
Lets make it more explicit.
For jdk8: docker build -t "orc-$os-jdk8" --build-arg jdk=8 .
For jdk11: docker build -t "orc-$os-jdk11" --build-arg jdk=11 .
| @@ -21,7 +21,7 @@ The scripts are: | |||
| A base image for each OS is built using: | |||
There was a problem hiding this comment.
Lets add above that:
run-all.sh, run-one.sh and reinit.sh tests both on jdk8 and 11 across OSes
|
Thanks @yuokada and @dongjoon-hyun for the work on this! Left some minor comments. |
There was a problem hiding this comment.
I built and ran this PR.
$ for i in $(docker images | grep orc | awk '{print $1}'); do echo $i; docker run -it --rm $i java -version; done
orc-ubuntu20-clang-jdk11
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
orc-ubuntu20-jdk11
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
orc-ubuntu18-jdk11
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
orc-centos8-jdk11
openjdk version "11.0.9.1" 2020-11-04 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.9.1+1-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.9.1+1-LTS, mixed mode, sharing)
orc-centos7-jdk11
openjdk version "11.0.10" 2021-01-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9-LTS, mixed mode, sharing)
orc-ubuntu20-clang-jdk8
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
orc-ubuntu20-jdk8
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
orc-ubuntu18-jdk8
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~18.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
orc-ubuntu16-jdk11
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~16.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
orc-ubuntu16-jdk8
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~16.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
orc-debian10-jdk11
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
orc-debian10-jdk8
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
orc-debian9-jdk11
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
orc-debian9-jdk8
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
orc-centos8-jdk8
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
orc-centos7-jdk8
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)In short, the following three look suspicious to me. Could you double-check it, @yuokada ?
orc-ubuntu16-jdk11
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~16.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
...
orc-debian10-jdk8
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
...
orc-debian9-jdk11
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
|
@dongjoon-hyun For debian 9 and ubuntu16, the openjdk-11 deb package isn't provided for both OSes. Or should we skip building an image on those OSes? |
|
If there is no JDK11 package, we had better document it and skip JDK11 for old OSes inside the above script like run-all.sh. |
What changes were proposed in this pull request?
Why are the changes needed?
How was this patch tested?
Dockerfiles are built successfully withreinit.shbash -xe ./run-one.sh yuokada ORC-694 ubuntu20