-
-
Notifications
You must be signed in to change notification settings - Fork 17
Switch to Temurin JDK #392
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9ba928b
Go back to temurin-24
MartelliEnrico 95261bc
Update workflow too
MartelliEnrico d497838
Added javadoc, more logging to junit, and fixed hashupdate
MartelliEnrico 7384c65
Merge branch 'main' into temurin-24
MartelliEnrico 92a107b
Fix qodana action permissions
MartelliEnrico e325f11
Some nits
MartelliEnrico 28185ee
Just download the webp tools
MartelliEnrico aac70f5
Update Dockerfile and unit-test.yml for improved jar handling and qod…
MartelliEnrico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,20 @@ | ||
| FROM azul/zulu-openjdk-alpine:24 AS builder | ||
|
|
||
| # bump: libwebp /LIBWEBP_VERSION=([\d.]+)/ git:https://chromium.googlesource.com/webm/libwebp.git|^1 | ||
| # bump: libwebp after ./hashupdate Dockerfile LIBWEBP $LATEST | ||
| ARG LIBWEBP_VERSION=1.6.0 | ||
| ARG LIBWEBP_SHA256=1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067 | ||
| ARG LIBWEBP_FILE="libwebp-$LIBWEBP_VERSION-linux-x86-64.tar.gz" | ||
| ARG LIBWEBP_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$LIBWEBP_FILE" | ||
| FROM eclipse-temurin:24-alpine AS builder | ||
|
|
||
| WORKDIR /app | ||
| RUN apk --no-cache add binutils curl tar | ||
| RUN curl -L --fail --retry 3 --retry-delay 5 "$LIBWEBP_URL" -O && \ | ||
| echo "$LIBWEBP_SHA256 $LIBWEBP_FILE" | sha256sum -c - && \ | ||
| tar -xzf "$LIBWEBP_FILE" --one-top-level=libwebp --strip-components=1 && \ | ||
| rm "$LIBWEBP_FILE" | ||
|
|
||
| COPY . . | ||
| RUN --mount=type=cache,target=/root/.gradle ./gradlew jlink shadowJar | ||
|
|
||
| # bump: alpine /FROM alpine:([\d.]+)/ docker:alpine|^3 | ||
| # bump: alpine link "Release notes" https://alpinelinux.org/posts/Alpine-$LATEST-released.html | ||
| FROM alpine:3.22.1 AS bot | ||
|
|
||
| # bump: ffmpeg /static-ffmpeg:([\d.]+)/ docker:mwader/static-ffmpeg|~7.0 | ||
| COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/local/bin/ | ||
| ENV FFMPEG_PATH=/usr/local/bin/ffmpeg | ||
| RUN apk --no-cache add libwebp-tools | ||
|
|
||
| COPY --from=builder /app/libwebp/bin/cwebp /usr/local/bin/ | ||
| COPY --from=builder /app/libwebp/bin/dwebp /usr/local/bin/ | ||
| # bump: ffmpeg /static-ffmpeg:([\d.]+)/ docker:mwader/static-ffmpeg|~7.0 | ||
| COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/bin/ | ||
| ENV FFMPEG_PATH=/usr/bin/ffmpeg | ||
|
|
||
| COPY --from=builder /app/build/jlink/jre jre | ||
| COPY --from=builder /app/build/libs/Stickerify-1.0-all.jar Stickerify.jar | ||
| COPY --from=builder /app/build/libs/*-all.jar Stickerify.jar | ||
|
|
||
| CMD ["jre/bin/java", "-Dcom.sksamuel.scrimage.webp.binary.dir=/usr/local/bin/", "-jar", "Stickerify.jar"] | ||
| CMD ["jre/bin/java", "-Dcom.sksamuel.scrimage.webp.binary.dir=/usr/bin", "-jar", "Stickerify.jar"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| #This file is generated by updateDaemonJvm | ||
| toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d898567da69cac7b9b75d8d74e577e7a/redirect | ||
| toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/902ef81bafffcd1670604d74b6c7a6b0/redirect | ||
| toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d898567da69cac7b9b75d8d74e577e7a/redirect | ||
| toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/902ef81bafffcd1670604d74b6c7a6b0/redirect | ||
| toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/4175090548a4792cf1cef411becfba0f/redirect | ||
| toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/50df1a9c218487a6519e22a0d29e6215/redirect | ||
| toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d898567da69cac7b9b75d8d74e577e7a/redirect | ||
| toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/902ef81bafffcd1670604d74b6c7a6b0/redirect | ||
| toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/f55af862790b0c395d3f70e23016df3d/redirect | ||
| toolchainVendor=AZUL | ||
| toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/6d0adbce30460017fe61d2993dfa663e/redirect | ||
| toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/50f16d2dc2bb80a421afc1af38fc92e3/redirect | ||
| toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/6d0adbce30460017fe61d2993dfa663e/redirect | ||
| toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/50f16d2dc2bb80a421afc1af38fc92e3/redirect | ||
| toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/4f4ebe4f162f6deb29540c4ebe629d79/redirect | ||
| toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/79d5995ef1c3e4df39a3b2f545cada5e/redirect | ||
| toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/6d0adbce30460017fe61d2993dfa663e/redirect | ||
| toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/50f16d2dc2bb80a421afc1af38fc92e3/redirect | ||
| toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/61fdd87038cf8b094dadad8566609a29/redirect | ||
| toolchainVendor=ADOPTIUM | ||
| toolchainVersion=24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| #!/bin/sh | ||
| set -euo | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| # Usage: hashupdate <FILE> <NAME> <VERSION> | ||
| URL_TEMPLATE=$(grep "$2_URL=" "$1" | sed -E 's/.*="(.*)"/\1/') | ||
| URL=$(echo "$URL_TEMPLATE" | sed "s/\$$2_VERSION/$3/g") | ||
| URL=$(grep "$2_URL=" "$1" | sed -E 's/.*="([^"]*)".*/\1/' | sed "s/\$$2_VERSION/$3/g") | ||
MartelliEnrico marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| SHA256=$(curl -sL "$URL" | sha256sum | sed -e 's/ -//g') | ||
MartelliEnrico marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| sed -i -E "s/$2_SHA256=.*/$2_SHA256=$SHA256/" "$1" | ||
MartelliEnrico marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.