installer icon indicating copy to clipboard operation
installer copied to clipboard

Would you plan to add Alpine repo ?

Open abcfy2 opened this issue 5 years ago • 3 comments

Features that impact the whole project (e.g. Adding a new OpenJDK distribution)are made over at the TSC.

Would you plan to add Alpine repo ?

I find the zulu jdk already support Alpine repo: https://docs.azul.com/zulu/zuludocs/ZuluUserGuide/PrepareZuluPlatform/AttachAPKRepositoryAlpineLinux.htm

I think it's cool that AdoptOpenJDK also support Alpine repo.

abcfy2 avatar Jun 10 '20 04:06 abcfy2

I have plans, actually. But there was no demand so far and, personally, I do not see much value in it as long as there is no AdoptOpenJDK build that works with musl libc. The Docker images we produce require glibc. Azul has musl builds, most likely as a result of Portola. musl support should become an official part of OpenJDK with JEP 386. It hasn't landed yet, maybe in 16? I expect us to provide an APK repository by then.

aahlenst avatar Jun 10 '20 05:06 aahlenst

Alpine port is now considered production ready as of 16 GA: https://mail.openjdk.java.net/pipermail/portola-dev/2021-May/000517.html AdoptOpenJDK provided a 16 Alpine Docker image: https://hub.docker.com/r/adoptopenjdk/openjdk16 but it seems slightly out of date (16.0.1 vs 16.0.2 is latest now) Part of the lack of demand I think is the difficulty of finding a vendor providing out of the box binaries - most people don't want to compile their own source. It would be cool to have an Alpine package with openjdk available - we'd certainly try it.

stevenschlansker avatar Aug 13 '21 20:08 stevenschlansker

I've been experimenting with pushing some apk files up if people want to have a go with them and provide some feedback?

add the public key:

wget -O /etc/apk/keys/adoptium.rsa.pub https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk

add the repo:

echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' >> /etc/apk/repositories

install JDK (replace with 17/11/8 etc)

apk update # if needed
apk add temurin-<version>-jdk

gdams avatar Oct 04 '22 09:10 gdams

@lfvjimisola what doesn't work? Are you able to send me any logs/error messages?

gdams avatar Nov 11 '22 10:11 gdams

@lfvjimisola what doesn't work? Are you able to send me any logs/error messages?

It works now of course (rubber ducking and Murphy at their best). Suspecting network/forward proxy issues at our end. Sorry for disturbing you. Will look at it further and report back if needed. Thanks.

lfvjimisola avatar Nov 11 '22 10:11 lfvjimisola

Will the adoptium apk repo main historic version just like for other builds/packages?

lfvjimisola avatar Nov 22 '22 18:11 lfvjimisola

We use renovate for version monitoring and it works for standard apk packages. However, it does not work with Eclipse Temurin packages since its alpine repository is not available in Repology.

Another option would be to use GitHub releases API but those version number to not match APK version number.

lfvjimisola avatar Nov 22 '22 18:11 lfvjimisola

@gdams

  1. I was able before to browse to https://packages.adoptium.net/artifactory/apk/alpine/main and see all available versions. That is no longer the case as a JFrog login page shows for which I don't have login info. Can I see available apk version on the web somewhere (the version string is bit different than if I go to the regular download site)?
    Currently, it seems as the following versions are available:
temurin-17-jdk-17.0.4.1_p1-r0
temurin-17-jdk-17.0.5_p8-r0
temurin-17-17.0.4.1_p1-r0
temurin-17-17.0.5_p8-r0
temurin-17-src-17.0.4.1_p1-r0
temurin-17-src-17.0.5_p8-r0
  1. Is temurin-17-17.0.5_p8-r0 JRE only? Is it possible to install just the JRE? apk add temurin-17 or `temurin-17-17.0.5_p8-r0```seems to install the JDK.

  2. Are you planning to change to apk install instead of tarball in the official images? Would be nice to know that the apk are used officially as well in case of bugs etc.

jimisola avatar Dec 21 '22 00:12 jimisola