installer icon indicating copy to clipboard operation
installer copied to clipboard

initial attempt at alpine apk files

Open gdams opened this issue 3 years ago • 10 comments

fixes: https://github.com/adoptium/installer/issues/220

gdams avatar Sep 30 '22 17:09 gdams

@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 avatar Oct 03 '22 13:10 lfvjimisola

@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 with 17/11/8 etc)

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

gdams avatar Oct 04 '22 08:10 gdams

asked the question at https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10082

gdams avatar Oct 04 '22 11:10 gdams

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

gdams avatar Oct 15 '22 16:10 gdams

in all alpine's logs: ERROR: temurin-X-jdk*: libasound.so.2: path not found is the depedency track failing?

zdtsw avatar Oct 15 '22 17:10 zdtsw

in all alpine's logs: ERROR: temurin-X-jdk*: libasound.so.2: path not found is the depedency track failing?

Hmm yea looks like I need to add alsa-lib as a dependency.

gdams avatar Oct 15 '22 19:10 gdams

@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

gdams avatar Oct 15 '22 19:10 gdams

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?

sophia-guo avatar Oct 17 '22 18:10 sophia-guo

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.

zdtsw avatar Oct 18 '22 08:10 zdtsw

test code freeze

gdams avatar Oct 20 '22 09:10 gdams

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!

lfvjimisola avatar Oct 28 '22 11:10 lfvjimisola

/thaw

gdams avatar Nov 02 '22 16:11 gdams