mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-12 21:30:29 +05:30
Add testing support for GraalVM's and OpenJ9 JVM.
This commit is contained in:
parent
ad736729a1
commit
1c454b4fdf
@ -1,8 +1,8 @@
|
||||
.*
|
||||
build
|
||||
bin
|
||||
Dockerfile
|
||||
Dockerfile.*
|
||||
Dockerfile*
|
||||
docker-compose.yml
|
||||
*.bat
|
||||
LICENSE
|
||||
*.md
|
||||
|
5
.github/workflows/docker-build-test.yml
vendored
5
.github/workflows/docker-build-test.yml
vendored
@ -16,6 +16,10 @@ jobs:
|
||||
- testing/docker-compose.hsqldb.yml
|
||||
- testing/docker-compose.cockroachdb.yml
|
||||
- testing/docker-compose.yugabytedb.yml
|
||||
dockerfile:
|
||||
- Dockerfile
|
||||
- Dockerfile.openj9
|
||||
- Dockerfile.graalvm-jvm
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Create Version File
|
||||
@ -25,6 +29,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
load: true
|
||||
file: ${{ matrix.dockerfile }}
|
||||
tags: 1337kavin/piped:latest
|
||||
- name: Start Docker-Compose services
|
||||
run: docker-compose -f ${{ matrix.docker-compose-file }} up -d && sleep 5
|
||||
|
26
Dockerfile.graalvm-jvm
Normal file
26
Dockerfile.graalvm-jvm
Normal file
@ -0,0 +1,26 @@
|
||||
FROM ghcr.io/graalvm/native-image:latest as build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY . /app/
|
||||
|
||||
RUN --mount=type=cache,target=/root/.gradle/caches/ \
|
||||
./gradlew shadowJar
|
||||
|
||||
RUN jlink \
|
||||
--add-modules java.base,java.logging,java.sql,java.management,java.xml,java.naming,java.desktop,jdk.crypto.ec \
|
||||
--strip-debug \
|
||||
--no-man-pages \
|
||||
--no-header-files \
|
||||
--compress=2 \
|
||||
--output /javaruntime
|
||||
|
||||
FROM debian:stable-slim
|
||||
|
||||
ENV JAVA_HOME=/opt/java/openjdk
|
||||
ENV PATH "${JAVA_HOME}/bin:${PATH}"
|
||||
COPY --from=build /javaruntime $JAVA_HOME
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY --from=build /app/build/libs/piped-1.0-all.jar .
|
Loading…
Reference in New Issue
Block a user