mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Release v2.2.0 (#741)
* Migrate to TailwindCSS v4 (#740) * Remove "material-tailwind" dependencies due to incompatibility of Stepper component with Tailwind v4 * Clean up Tailwind configs before upgrade * Run HeroUI upgrade * Run TailwindCSS upgrade * Replace PostCSS with Vite * Migrate custom styles to v4 * Remove tailwind.config.ts * Add heroui.ts Add tailwind vite plugin * Fix small UI color inconsistency * Fix theming system Rename purple theme to pink * Re-implement stepper in HeroUI * Fix RoleChip colors * Migrate icon names (#743) * Add migration script for phosphor-icons * Migrate icon usages * Update version to 2.2.0-preview * Revert accidental rename of menu title * Bump stefanzweifel/git-auto-commit-action from 6 to 7 (#750) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6 to 7. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v6...v7) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Improve library scanning (#749) * Update script to generate example libraries using SteamSpy API * Refactor library scanning process * Display Flyway startup log by default * Fix race condition in CompanyService * Fix race condition in ImageService Remove obsolete table * Fix SMTP config requiring an email as username (#755) * Disable length limit for config values (#757) * Deprecate DockerHub image (#759) * Remove deprecation warning from web UI * Reworked the CICD pipelines * Optimize container image (#761) * Fix Gradle warning * Rework Docker image to improve layer caching * Bump stefanzweifel/git-auto-commit-action from 6 to 7 (#765) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6 to 7. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v6...v7) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Multi platform support (#764) * Remove migrate-phosphor-icons.js since migration has been successful * Refactor GameMetadata into separate files * Add Platform enum * Implement platform support in Plugin API * Implement platform support in Steam Plugin * Implement platform support in IGDB Plugin * Add database migration for platform support * Implement platform support in GameService * Implement platform support on most endpoints and features, some are still missing Implemented platform support in all bundled plugins (although not finished polishing yet) * Implement platforms in UI * Make GameRequest platform aware * Return headerImages from IGDB * Implement proper PlatformMapper for IGDB plugin * Fix various smaller issues and inconsistencies * Replace placeholder in LibraryOverviewCard (#767) * Bump actions/download-artifact from 5 to 6 (#769) * Bump actions/upload-artifact from 4 to 5 (#770) * Multi platform support (#773) * Fix bug in Plugin API related to state loading/saving * Hide Flyway query logs by default * Extend migration script for multi platform tables * Plugins now store their data and state in ./plugindata * Add "plugindata" directory to entrypoint scripts * Improve download handling (#756) * Process download in background thread to avoid session timeout affecting it * Increase default session timeout to 24h * Use virtual thread pool for download task in background * Make KSP extensions.idx generation more robust * Implement download bandwidth limiter Implement SliderInput Refactor NumberInput * Implement download bandwidth throttling Implement real-time download monitoring * Improve UI for DownloadManagement Track more stats in SessionStats * Update Hilla Use React 19 * Implement real-time graph to track bandwidth usage Implement downloaded data sum over last day Small bug fixes Small refactorings * Update docker-compose.example.yml * Improve DownloadSessionCard (#784) * Fix unit on y-axis of download graph * Show game size and library in tooltip Make game chips interactive in DownloadSessionCard (leads to game page when clicked) Optimize graph settings * Migrate torrent plugin to libtorrent (#775) * Disable TorrentDownloadPlugin in Alpine based Docker image * Improve test coverage (#785) * Fix potential divide by zero bug * Add mockk dependency * Add tests for org.gameyfin.app.core.download * Add tests for Filesytem package Fix DownloadServiceTest * Fix FilesystemServiceTest * Add tests for "job" package * Upgrade Gradle wrapper Enable Gradle config cache * Added more tests * Added tests for the "security" package * Add tests for "game" package * Fix AsyncFileTailer not shutting down properly on Windows * Fix GameServiceTest * Added tests for "libraries" package * Added tests for "media" package * Fix warning in ImageService * Add tests fpr "messages" package Make sure transport is closed even in case an exception is thrown * Add tests for "platforms" package * Add tests for "requests" package * Moved "token" package to "core" package (from "shared") * Add tests for "token" package * Fix issue in RoleEnum.safeValueOf() throwing Exception * Fix potential issue in UserEndpoint.getUserInfo() when auth is null * Added tests for "user" package * Migrate package for "token" in FE * Publish test report in CI * Fix workflow permissions * Remove test because of timing issue in CI * Replaced "unmatched paths" with "ignored paths" (#791) * Use new "AutoComplete" component (#793) * Use ArrayInputAutocomplete in EditGameMetadataModal * Add test for getEnumPropertyValues --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
+44
-21
@@ -1,36 +1,59 @@
|
||||
# syntax=docker/dockerfile:1.4
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine as builder
|
||||
WORKDIR /opt/gameyfin
|
||||
ARG JAR_FILE=./app/build/libs/app.jar
|
||||
COPY ${JAR_FILE} application.jar
|
||||
RUN java -Djarmode=layertools -jar application.jar extract
|
||||
|
||||
# Pre-collect plugin JARs so final stage can copy them in a single layer
|
||||
COPY --link ./plugins/ /tmp/plugins/
|
||||
RUN mkdir -p /opt/gameyfin/plugins \
|
||||
&& find /tmp/plugins -type f -path "*/build/libs/*.jar" -exec cp {} /opt/gameyfin/plugins/ \; \
|
||||
&& rm -rf /tmp/plugins
|
||||
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
|
||||
MAINTAINER grimsi
|
||||
# OCI labels
|
||||
LABEL maintainer="grimsi" \
|
||||
org.opencontainers.image.title="Gameyfin" \
|
||||
org.opencontainers.image.description="Manage your video games. simple/fast/FOSS" \
|
||||
org.opencontainers.image.url="https://gameyfin.org" \
|
||||
org.opencontainers.image.source="https://github.com/gameyfin/gameyfin" \
|
||||
org.opencontainers.image.licenses="AGPL-3.0-only" \
|
||||
org.opencontainers.image.vendor="Gameyfin" \
|
||||
org.opencontainers.image.authors="Gameyfin maintainers"
|
||||
|
||||
# Indicate docker runtime environment
|
||||
ENV RUNTIME_ENV=docker
|
||||
|
||||
# Install necessary packages
|
||||
RUN apk add --no-cache su-exec tini shadow
|
||||
RUN apk add --no-cache su-exec tini shadow gcompat
|
||||
|
||||
# Fixed runtime user/group
|
||||
ENV USER=gameyfin
|
||||
|
||||
RUN addgroup gameyfin && \
|
||||
adduser --disabled-password --gecos "" --ingroup "$USER" --no-create-home "$USER"
|
||||
ARG UID=1337
|
||||
ARG GID=1337
|
||||
|
||||
WORKDIR /opt/gameyfin
|
||||
|
||||
# Create necessary directories with appropriate permissions
|
||||
RUN mkdir -p plugins db data logs && \
|
||||
chown -R gameyfin:gameyfin .
|
||||
# Create user and required directories
|
||||
RUN groupadd -g "$GID" "$USER" && \
|
||||
useradd -u "$UID" -g "$GID" -M -s /sbin/nologin "$USER" && \
|
||||
mkdir -p plugins plugindata db data logs && \
|
||||
chown -R "$UID:$GID" .
|
||||
|
||||
# Copy entrypoint script and set permissions
|
||||
COPY --chown=gameyfin:gameyfin ./docker/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
# Copy entrypoint script with proper perms and ownership
|
||||
COPY --link --chown=${UID}:${GID} --chmod=0755 ./docker/entrypoint.sh /entrypoint.sh
|
||||
|
||||
# Copy application jar (not ending with -plain.jar)
|
||||
COPY --chown=gameyfin:gameyfin ./app/build/libs/ /tmp/app-libs/
|
||||
RUN find /tmp/app-libs -type f -name "*.jar" ! -name "*-plain.jar" -exec cp {} gameyfin.jar \; && \
|
||||
rm -rf /tmp/app-libs
|
||||
|
||||
# Copy all plugin jars
|
||||
COPY --chown=gameyfin:gameyfin ./plugins/ /tmp/plugins/
|
||||
RUN find /tmp/plugins -type f -path "*/build/libs/*.jar" -exec cp {} plugins/ \; && \
|
||||
rm -rf /tmp/plugins
|
||||
# Copy application layers and plugin jars from builder stage
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/dependencies/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/spring-boot-loader/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/snapshot-dependencies/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/application/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/plugins ./plugins
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
|
||||
|
||||
+44
-22
@@ -1,39 +1,61 @@
|
||||
# syntax=docker/dockerfile:1.4
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine as builder
|
||||
WORKDIR /opt/gameyfin
|
||||
ARG JAR_FILE=./app/build/libs/app.jar
|
||||
COPY ${JAR_FILE} application.jar
|
||||
RUN java -Djarmode=layertools -jar application.jar extract
|
||||
|
||||
# Pre-collect plugin JARs so final stage can copy them in a single layer
|
||||
COPY --link ./plugins/ /tmp/plugins/
|
||||
RUN mkdir -p /opt/gameyfin/plugins \
|
||||
&& find /tmp/plugins -type f -path "*/build/libs/*.jar" -exec cp {} /opt/gameyfin/plugins/ \; \
|
||||
&& rm -rf /tmp/plugins
|
||||
|
||||
|
||||
FROM eclipse-temurin:21-jre
|
||||
|
||||
MAINTAINER grimsi
|
||||
# OCI labels
|
||||
LABEL maintainer="grimsi" \
|
||||
org.opencontainers.image.title="Gameyfin" \
|
||||
org.opencontainers.image.description="Manage your video games. simple/fast/FOSS" \
|
||||
org.opencontainers.image.url="https://gameyfin.org" \
|
||||
org.opencontainers.image.source="https://github.com/gameyfin/gameyfin" \
|
||||
org.opencontainers.image.licenses="AGPL-3.0-only" \
|
||||
org.opencontainers.image.vendor="Gameyfin" \
|
||||
org.opencontainers.image.authors="Gameyfin maintainers"
|
||||
|
||||
# Indicate docker runtime environment
|
||||
ENV RUNTIME_ENV=docker
|
||||
|
||||
# Install necessary packages
|
||||
RUN apt-get update && \
|
||||
apt-get install -y tini gosu && \
|
||||
apt-get install -y --no-install-recommends tini gosu && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Fixed runtime user/group
|
||||
ENV USER=gameyfin
|
||||
|
||||
RUN groupadd gameyfin && \
|
||||
useradd -M -g gameyfin gameyfin
|
||||
ARG UID=1337
|
||||
ARG GID=1337
|
||||
|
||||
WORKDIR /opt/gameyfin
|
||||
|
||||
# Create necessary directories with appropriate permissions
|
||||
RUN mkdir -p plugins db data logs && \
|
||||
chown -R gameyfin:gameyfin .
|
||||
# Create user and required directories with fixed IDs
|
||||
RUN groupadd -g "$GID" "$USER" && \
|
||||
useradd -u "$UID" -g "$GID" -M -s /usr/sbin/nologin "$USER" && \
|
||||
mkdir -p plugins plugindata db data logs && \
|
||||
chown -R "$UID:$GID" .
|
||||
|
||||
# Copy entrypoint script and set permissions
|
||||
COPY --chown=gameyfin:gameyfin ./docker/entrypoint.ubuntu.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
# Copy entrypoint script with proper perms and ownership
|
||||
COPY --link --chown=${UID}:${GID} --chmod=0755 ./docker/entrypoint.ubuntu.sh /entrypoint.sh
|
||||
|
||||
# Copy application jar (not ending with -plain.jar)
|
||||
COPY --chown=gameyfin:gameyfin ./app/build/libs/ /tmp/app-libs/
|
||||
RUN find /tmp/app-libs -type f -name "*.jar" ! -name "*-plain.jar" -exec cp {} gameyfin.jar \; && \
|
||||
rm -rf /tmp/app-libs
|
||||
|
||||
# Copy all plugin jars
|
||||
COPY --chown=gameyfin:gameyfin ./plugins/ /tmp/plugins/
|
||||
RUN find /tmp/plugins -type f -path "*/build/libs/*.jar" -exec cp {} plugins/ \; && \
|
||||
rm -rf /tmp/plugins
|
||||
# Copy application layers and plugin jars from builder stage
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/dependencies/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/spring-boot-loader/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/snapshot-dependencies/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/application/ ./
|
||||
COPY --from=builder --link --chown=${UID}:${GID} /opt/gameyfin/plugins ./plugins
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
|
||||
@@ -1,14 +1,23 @@
|
||||
version: "3"
|
||||
services:
|
||||
gameyfin:
|
||||
image: ghcr.io/gameyfin/gameyfin:2
|
||||
container_name: gameyfin
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# Generate a new APP_KEY using the command `openssl rand -base64 32` or similar.
|
||||
APP_KEY: <you app key here>
|
||||
# Generate a new APP_KEY using the command "openssl rand -base64 32" or similar.
|
||||
APP_KEY: <your app key here>
|
||||
|
||||
# (optional) Set the URL of your Gameyfin instance if you are using a reverse proxy.
|
||||
# Currently, this is only used for generating links in notification emails and the log line at first run.
|
||||
# APP_URL: https://gameyfin.example.com
|
||||
|
||||
# (optional) Set the user and group ID to run Gameyfin with a specific user.
|
||||
# PUID: 1000 # Change this to your user ID if needed
|
||||
# PGID: 1000 # Change this to your group ID if needed
|
||||
volumes:
|
||||
- "./db:/opt/gameyfin/db"
|
||||
- "./data:/opt/gameyfin/data"
|
||||
- "./plugindata:/opt/gameyfin/plugindata"
|
||||
- "./logs:/opt/gameyfin/logs"
|
||||
- <mount your library folder(s) here>
|
||||
ports:
|
||||
|
||||
+20
-6
@@ -1,11 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
||||
# Optional UID/GID remapping for mounted volumes
|
||||
PUID=${PUID:-}
|
||||
PGID=${PGID:-}
|
||||
|
||||
if [ -n "$PGID" ]; then
|
||||
groupmod -o -g "$PGID" gameyfin
|
||||
fi
|
||||
if [ -n "$PUID" ]; then
|
||||
usermod -o -u "$PUID" gameyfin
|
||||
chown -R gameyfin:gameyfin /opt/gameyfin
|
||||
exec su-exec gameyfin:gameyfin java -jar gameyfin.jar
|
||||
else
|
||||
exec su-exec gameyfin:gameyfin java -jar gameyfin.jar
|
||||
fi
|
||||
fi
|
||||
|
||||
# Only fix ownership on writable dirs when remapping is requested
|
||||
if [ -n "$PUID$PGID" ]; then
|
||||
for d in plugins plugindata db data logs; do
|
||||
[ -d "/opt/gameyfin/$d" ] || mkdir -p "/opt/gameyfin/$d"
|
||||
chown -R gameyfin:gameyfin "/opt/gameyfin/$d"
|
||||
done
|
||||
fi
|
||||
|
||||
export JAVA_TOOL_OPTIONS="${JAVA_OPTS:-}"
|
||||
|
||||
exec su-exec gameyfin:gameyfin java -Djava.net.preferIPv4Stack=true org.springframework.boot.loader.launch.JarLauncher
|
||||
@@ -1,12 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
||||
# Optional UID/GID remapping for mounted volumes
|
||||
PUID=${PUID:-}
|
||||
PGID=${PGID:-}
|
||||
|
||||
if [ -n "$PGID" ]; then
|
||||
groupmod -o -g "$PGID" gameyfin
|
||||
fi
|
||||
if [ -n "$PUID" ]; then
|
||||
usermod -o -u "$PUID" gameyfin
|
||||
chown -R gameyfin:gameyfin /opt/gameyfin
|
||||
exec gosu gameyfin:gameyfin java -jar gameyfin.jar
|
||||
else
|
||||
exec gosu gameyfin:gameyfin java -jar gameyfin.jar
|
||||
fi
|
||||
|
||||
# Only fix ownership on writable dirs when remapping is requested
|
||||
if [ -n "$PUID$PGID" ]; then
|
||||
for d in plugins plugindata db data logs; do
|
||||
[ -d "/opt/gameyfin/$d" ] || mkdir -p "/opt/gameyfin/$d"
|
||||
chown -R gameyfin:gameyfin "/opt/gameyfin/$d"
|
||||
done
|
||||
fi
|
||||
|
||||
export JAVA_TOOL_OPTIONS="${JAVA_OPTS:-}"
|
||||
|
||||
exec gosu gameyfin:gameyfin java -Djava.net.preferIPv4Stack=true org.springframework.boot.loader.launch.JarLauncher
|
||||
@@ -1,3 +1,3 @@
|
||||
1. Run production build
|
||||
2. Run docker build in root dir: docker buildx build --platform linux/arm64/v8,linux/amd64 -f docker/Dockerfile --tag grimsi/gameyfin:<TAG> .
|
||||
2. Run docker build in root dir: docker buildx build --platform linux/arm64/v8,linux/amd64 -f docker/Dockerfile --tag gameyfin/gameyfin:<TAG> .
|
||||
2.1 If you want to push the image to a registry, add --push to the command above.
|
||||
Reference in New Issue
Block a user