initial attempt at alpine apk files
fixes: https://github.com/adoptium/installer/issues/220
@gdams Thank you for your contribution. Many of us using alpine with be so grateful.
Out of curiosity, will the temurin jre/jdk alpine apk packages be hosted by Adoptium or by alpine? Is the plan to be able to various temurin jre/jdk with different versions of alpine?
Not sure if it helps but Temurin has an OpenAPI that allows you do get download URL based on arch, version etc. Might be safer to use than the hardcoded URLs?
@lfvjimisola the apk files will be pushed to https://packages.adoptium.net (where we host our DEB/RPM files too)
I've been experimenting with pushing some apk files up if you 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
apk update # if needed
apk add temurin-<version>-jdk
asked the question at https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10082
One problem I've observed is that we don't seem to be able to install multiple versions on the same machine:
This is now fixed
in all alpine's logs: ERROR: temurin-X-jdk*: libasound.so.2: path not found is the depedency track failing?
in all alpine's logs:
ERROR: temurin-X-jdk*: libasound.so.2: path not foundis the depedency track failing?
Hmm yea looks like I need to add alsa-lib as a dependency.
@zdtsw I've fixed that error, there is still a warning about libawt.so for JDK8u but that's bundled as part of the JDK so likely not a concern
Would it be better to move HelloWorld.java, TestCryptoLevel.java and TestECDSA.java to PackageTest folder instead of packaging folder as those are tests? And feels like there is no need to keep one copy for each version?
Would it be better to move HelloWorld.java, TestCryptoLevel.java and TestECDSA.java to PackageTest folder instead of packaging folder as those are tests? And feels like there is no need to keep one copy for each version?
i think the difference for these are they are testing for different purposes. the HelloWolrd and so, are part of the apkbuild check() to use the just-built-jdk to compile java code and run it as some basic sanity checks. the others we are running like rpm test are using testcontainer which is running a bunch of java testcases to test if the final package. so the jdk for those tests are not the ones we intended to release.
test code freeze
gdams
We are using it for one of our containers that is not used in production yet. It works well from what we have seen so far. Any idea, on when these apk will be added to the official repo.
Thanks a lot for your work!
/thaw