-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Build deb packages #61
Conversation
@aahlenst thanks for your work! can we setup a call to go through this some time? CC @AdoptOpenJDK/installer |
Should be doable. What do you consider a call (chat or real voice)? |
a call is probably best :) |
We are very interested in this. If there is any way for us to help with testing, please let us know. |
The tooling is now capable of building packages of OpenJDK 11 with Hotspot or OpenJ9 on AMD64. I've tested on Ubuntu 18.04. If anyone wants to give it a try:
For Hotspot:
For OpenJ9:
The Debian packages can be found afterwards in If you feel adventurous, you can try it with another architecture by downloading the appropriate tarball and changing Both OpenJ9 and Hotspot can be installed side by side. |
From my side we're good to go here. The README should outline what's possible/supported and what not. I tested what I could on amd64. Stuff that needs to be dealt with at a later stage:
|
@dennisl feel free to run some tests on https://ci.adoptopenjdk.net/view/work%20in%20progress/job/andreas-deb-job/10/artifact/linux/deb/build/adoptopenjdk-11-hotspot_11.0.2+9-1_amd64.deb and let us know what you think! |
running the following simple test: apt-get update
wget https://ci.adoptopenjdk.net/view/work%20in%20progress/job/andreas-deb-job/10/artifact/linux/deb/build/adoptopenjdk-11-hotspot_11.0.2+9-1_amd64.deb
dpkg -i adoptopenjdk-11-hotspot_11.0.2+9-1_amd64.deb
apt-get install -f
dpkg -i adoptopenjdk-11-hotspot_11.0.2+9-1_amd64.deb
java -version #check it outputs the correct adoptopenjdk version
|
Thank you so much! We tried to install the deb-file you provided and it worked fine. Since we are running on Java 8 we also tried to build our own deb-file for OpenJDK 8 with hotspot for amd64. We just followed the instructions and ended up with a deb-file that installed without a problem. One thing to note is that if you install OpenJDK 8 after OpenJDK 11, the current java version will still be OpenJDK 11. I'm not experienced when it comes to creating deb-files, but I guess it has to do with the priority parameter. To switch you need to use: All tests were done on Ubuntu 18.04. |
Yeah, if you install OpenJDK 11 first and OpenJDK 8 later OpenJDK 11 will still be the default. To change the default JDK, use |
Yeah that's the same behaviour as the homebrew casks |
Thanks @aahlenst ! |
Superseded by #79. |
This is work in progress and not ready to merge. But I'm looking for feedback before I invest time going into the wrong direction.
As it stands, the Makefile produces a deb package for Ubuntu 18.04 with the help of fpm. As input it uses a tarball release of OpenJDK 11 for x64. The Makefile isn't pretty because the focus was on producing a good deb package with post install and removal scripts. So far, it installs and uninstalls fine and integrates well with
update-alternatives
andupdate-java-alternatives
. It can be installed side by side with other JDK distributions like the one provided by the operating system or Azul Zulu.There's still a lot of work to do:
Questions in no particular order:
lib/modules
that are present in both the JRE and JDK but are not identical. So far, the only option I see would be to package both separately and declare them as conflicting packages. Azul only provides the full JDK, I haven't checked what Amazon is doing with Corretto.As soon as this in proper shape, adding support for rpms and other formats should hopefully not be that much work.
Remaining tasks: