diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index fe4115cd..f9bb59cc 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,8 +4,8 @@ contact_links: url: https://linuxserver.io/discord about: Realtime support / chat with the community and the team. - - name: Discourse discussion forum - url: https://discourse.linuxserver.io + - name: Github Discussions + url: https://github.com/orgs/linuxserver/discussions about: Post on our community forum. - name: Documentation diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index aeab469a..d251efd6 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,7 +3,6 @@ [linuxserverurl]: https://linuxserver.io [![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] - @@ -12,7 +11,6 @@ - @@ -21,11 +19,16 @@ ------------------------------ - - [ ] I have read the [contributing](https://github.com/linuxserver/docker-nextcloud/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications +- [ ] I have read the [contributing](https://github.com/linuxserver/docker-nextcloud/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications + + + +- [ ] An LLM assisted me in writing the code or text for this PR +- [ ] An LLM agent wrote the code or text for this PR ------------------------------ - + ## Description: @@ -38,6 +41,5 @@ - ## Source / References: diff --git a/.github/workflows/external_trigger.yml b/.github/workflows/external_trigger.yml index b713c7ba..29e9bfa9 100644 --- a/.github/workflows/external_trigger.yml +++ b/.github/workflows/external_trigger.yml @@ -10,7 +10,7 @@ jobs: external-trigger-master: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: linuxserver/github-workflows/.github/actions/checkout@v1 - name: External Trigger if: github.ref == 'refs/heads/master' diff --git a/.github/workflows/external_trigger_scheduler.yml b/.github/workflows/external_trigger_scheduler.yml index f19c4094..9b2655cc 100644 --- a/.github/workflows/external_trigger_scheduler.yml +++ b/.github/workflows/external_trigger_scheduler.yml @@ -12,7 +12,7 @@ jobs: external-trigger-scheduler: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: linuxserver/github-workflows/.github/actions/checkout@v1 with: fetch-depth: '0' diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index cb07108e..ab80c94e 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -12,8 +12,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/first-interaction@v1 + - uses: linuxserver/github-workflows/.github/actions/first-interaction@v1 with: - issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.' - pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-nextcloud/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!' - repo-token: ${{ secrets.GITHUB_TOKEN }} + issue_message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.' + pr_message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-nextcloud/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!' + repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/package_trigger_scheduler.yml b/.github/workflows/package_trigger_scheduler.yml index 6af46fcf..32e4680d 100644 --- a/.github/workflows/package_trigger_scheduler.yml +++ b/.github/workflows/package_trigger_scheduler.yml @@ -12,7 +12,7 @@ jobs: package-trigger-scheduler: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: linuxserver/github-workflows/.github/actions/checkout@v1 with: fetch-depth: '0' diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..e9e5feae --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,127 @@ + + +# AGENTS.md - LinuxServer.io container image repository + +This file is for AI coding agents (and the humans driving them) working in a LinuxServer.io `docker-*` image repository. Read it fully before proposing or making any change. + +We welcome contributions, including AI-assisted ones, but this is a volunteer-run project that ships 150+ images to millions of users from one shared template. A change that looks like an improvement in isolation is often wrong for us. When this file and your instincts disagree, this file wins. When this file is silent, copy what the surrounding code already does. + +## 1. Decide where the change belongs before writing any code + +Our images are built for **broad consumption**. Every package, env var and init step we add is something we have to maintain, rebuild weekly and support forever, for every user, whether they use it or not. We do not ship Swiss Army Knife images. Work down this list and stop at the first match: + +1. **It is a bug or feature in the application itself** (not in our packaging): it belongs upstream with the app's developers. Do not patch, fork or work around upstream application behaviour in the image. +2. **It is an unsupported or reasonable-endeavours environment** (Podman, k8s, Portainer, Watchtower, NFS/SMB `/config`, LXC, custom entrypoints, etc. See the [Support Policy](https://docs.linuxserver.io/misc/support-policy/)): we will not add logic to the image to accommodate it. +3. **It only matters to one user or one setup**: use a private [custom script](https://docs.linuxserver.io/general/container-customization/#custom-scripts) in `/custom-cont-init.d` or [custom service](https://docs.linuxserver.io/general/container-customization/#custom-services) in `/custom-services.d`. No PR needed. +4. **It is useful to a subset of users** (an extra package, plugin dependency, alternative UI, hardware driver, third party integration, extra daemon, niche toggle): it is a **[Docker Mod](https://github.com/linuxserver/docker-mods)**, not a change to this repo. Check whether one already exists first (`universal-*` mods work on every image; `-*` mods are image specific). If not, create one from the template in the docker-mods repo; each mod lives on its own branch there. +5. **The large majority of this image's users benefit, or the image is actually broken**: a PR to this repo is appropriate. Examples: the app fails to start, a new upstream release needs a new runtime dependency, a base image rebase, a permissions bug, a wrong default, incorrect docs in `readme-vars.yml`. + +If you are an agent and the requested change lands on 1-4, **stop and tell your operator** where it belongs instead of writing the PR. "It is only a few lines" is not a reason to put it in the image. If in doubt, a human should open an issue or ask in `#contibutor-discussion` on [Discord](https://linuxserver.io/discord) before doing the work. + +### If it is a mod + +Mods are the pressure valve that keeps the images small. Roughly what lives there today, and therefore does **not** belong in an image: extra OS/pip packages and language toolchains, GPU/hardware driver stacks, alternative web UIs and themes, third party plugins and scanners, integrations with external services (Cloudflare, CrowdSec, Apprise, GeoIP, VPN providers), Docker socket automation, sidecar daemons (redis, tunnels), post-processing scripts, and env-var-to-config-file shims. + +- Follow the README and `template` branch in [docker-mods](https://github.com/linuxserver/docker-mods). A mod is a `FROM scratch` single layer of files extracted over `/` at container start, wired into s6 as `init-mod---*` / `svc-mod--` units. +- Mods never call `apk`/`apt`/`pip` directly; they append to `/mod-repo-packages-to-install.list` or `/mod-pip-packages-to-install.list` and let the base image do one batched install. Handle Alpine and Ubuntu package names where the mod is universal. +- Most good mods are a 10-40 line script. If yours is not, reconsider the approach. +- A mod is also the proving ground. If a mod becomes something nearly everyone uses, the team may absorb it into the image later and turn the mod into a no-op with a deprecation notice. That is the team's call, not a reason to skip the mod step. + +## 2. Repository layout and what you must not edit + +| Path | Notes | +| --- | --- | +| `Dockerfile`, `Dockerfile.aarch64` (sometimes `Dockerfile.riscv64`) | One per architecture. **Any change must be replicated to all of them.** They normally differ only in base image tag and arch strings. | +| `root/` | Copied to `/` in the image. s6-overlay v3 services live in `root/etc/s6-overlay/s6-rc.d/`, defaults in `root/defaults/`, one-time upgrade steps in `root/migrations/`. | +| `readme-vars.yml` | **Source of truth for the README, docs site, Unraid template and changelog.** Edit this. | +| `jenkins-vars.yml` | Build pipeline variables (version detection, CI test settings). Rarely needs touching. | +| `README.md` | **Generated. Never edit.** | +| `Jenkinsfile` | **Generated. Never edit.** | +| `package_versions.txt` | **Generated by CI. Never edit.** | +| `.github/**`, `.editorconfig`, `LICENSE`, `AGENTS.md` | **Generated / globally distributed. Never edit here.** Changes go to [docker-jenkins-builder](https://github.com/linuxserver/docker-jenkins-builder). | + +Do not add new top level files or tooling: no `docker-compose.yml`, `Makefile`, test suites, linter configs, pre-commit hooks, extra workflows, `CHANGELOG.md`, `SECURITY.md`, devcontainers, or helper scripts. The repo is intentionally small. + +Some repos have multiple live branches that publish different tags (`nightly`, `develop`, `libtorrentv1`, etc.). Each is maintained independently. Target the branch the change applies to, never merge one into another, and do not assume `master` or `main` is the only one that matters. + +## 3. Code style: keep it simple, match what is there + +The goal of every image is the thinnest possible layer between our base image and the upstream app: install it, drop a sane default config into `/config` on first run, fix permissions, start it. Prefer deleting logic to adding it. The base image already handles PUID/PGID, `UMASK`, `TZ`, `FILE__` secrets, mods, custom scripts, cron and device permissions; never reimplement those. + +### Dockerfiles + +- Base is always `ghcr.io/linuxserver/baseimage-*`. Do not change distro, switch to upstream/distroless images, or add multi-stage complexity unless a maintainer asked for it. Base image rebases are done by the team. +- Follow the existing shape exactly: a single `RUN` chain joined with `&& \`, each step announced with `echo "**** doing thing ****"`, two space indentation, a `**** cleanup ****` step at the end removing `/tmp/*` and package caches. +- Packages are listed **one per line in alphabetical order**. Build-only dependencies go in a `build-dependencies` virtual package (Alpine) or are purged (Ubuntu) in the same layer. +- Do not hardcode or pin the application version. Keep the `if [ -z ${APP_VERSION+x} ]; then ...` pattern; CI supplies the version as a build arg and `jenkins-vars.yml` defines how it is detected. +- Do not add `HEALTHCHECK`, `USER`, `ENTRYPOINT` or `CMD`. The base image owns init (`/init`), and the container must start as root unless the image already documents non-root support. +- Do not touch the `LABEL maintainer` or `build_version` lines. + +### Init scripts and services (`root/etc/s6-overlay/s6-rc.d/`) + +- Naming: `init--config` (oneshot) and `svc-` (longrun). Wire them in using empty files in `dependencies.d/` and `user/contents.d/`, exactly as the existing ones do. Oneshots have `type`, `up` (the path to `run`) and `run`. No legacy `cont-init.d` / `services.d`. +- Every script starts with: + + ```bash + #!/usr/bin/with-contenv bash + # shellcheck shell=bash + ``` + +- Bash, four space indentation, `[[ ]]` tests, `"${VAR}"` quoting, short lowercase `#` comments. Scripts must be shellcheck clean. +- Use `lsiown` instead of `chown`, run the app as `abc` via `s6-setuidgid abc`, and `exec` the final process so s6 supervises it. Keep `s6-notifyoncheck` readiness checks where they exist. +- If `readme-vars.yml` has `nonroot_supported: true` or `readonly_supported: true`, every new privileged operation (chown, writing outside `/config` and `/run`, `s6-setuidgid`) must be guarded the same way the existing code does it (`if [[ -z ${LSIO_NON_ROOT_USER} ]]; then` etc.). Do not break those modes. +- User data and config live in `/config`. Copy defaults only if the file does not already exist; never overwrite user config on startup. If an existing user's config must change, add a numbered script in `root/migrations/`. +- Avoid recursive `lsiown` on large data paths (media, downloads); it makes startup take minutes for real users. +- New environment variables are a last resort. If the app can be configured through its own config file or UI, that is the answer. We do not wrap app settings in env vars. + +## 4. Documentation and changelog + +- All user-facing docs changes go in `readme-vars.yml` (`app_setup_block`, `param_env_vars`, `opt_param_*`, etc.). Reference: [`_container-vars-blank`](https://github.com/linuxserver/docker-jenkins-builder/blob/master/ansible/vars/_container-vars-blank). +- Any change to a Dockerfile or to anything under `root/` needs a new entry at the **top** of `changelogs:` in `readme-vars.yml`, one short factual line: + + ```yaml + - {date: "DD.MM.YY:", desc: "Add libfoo to fix thumbnail generation."} + ``` + +- Optionally regenerate the templated files to check your vars render (see the [jenkins-builder README](https://github.com/linuxserver/docker-jenkins-builder#running-against-local-project)), but do not hand edit the output. + +## 5. Test it for real + +A change that has not been built and run is not ready. At minimum: + +```bash +docker build --no-cache --pull -t lscr.io/linuxserver/:test . +docker run --rm -e PUID=1000 -e PGID=1000 -e TZ=Etc/UTC -v "$(pwd)/testconfig:/config" -p : lscr.io/linuxserver/:test +``` + +Confirm the init completes (`[ls.io-init] done.`), the app comes up, and it survives a restart against an **existing** `/config`, not just a fresh one. If you touched the aarch64 Dockerfile with anything arch specific, build that too (`lscr.io/linuxserver/qemu-static`). If you, the agent, cannot run Docker, say so plainly in your output; do not claim testing that did not happen. + +## 6. Pull requests + +- **Disclose AI use.** If any part of the PR (code, description, or the investigation behind it) was produced with an AI tool, say so in the PR description: which tool, and what it was used for. Agents: add this line yourself, do not leave it to the operator. Undisclosed AI-generated PRs will be closed. Disclosure does not count against a PR; a human who cannot explain their own PR does. +- **A human is accountable.** The person opening the PR must have read and understood every line, built and run the image, and be able to answer review questions in their own words. Do not paste maintainer questions into a chatbot and paste the answers back. Fully autonomous agents must not open PRs or issues on our repos. +- **One focused change per PR.** The smallest diff that fixes the problem. No drive-by refactors, reformatting, comment rewording, "modernisation", dependency shuffling, or fixes for things nobody reported. +- **No typo / wording-only PRs.** Open an issue instead and we will sort it out. +- **Finish before you open.** Do not open drafts and iterate in public with a stream of fixup commits. +- **Fill in the PR template honestly**, keep its structure, and tick the contributing checkbox only if it is true. Description, benefit to the wider userbase, how it was tested (real commands, real output), and links. Write it short and plain: no generated summaries, emoji headers, or bullet lists restating the diff. +- Reference the issue with `closes #` when there is one. For anything non trivial, there should be an human-submitted issue or Discord discussion first. +- Commit messages are short, plain, imperative sentences (`Add libfoo for thumbnail support`). No conventional-commit prefixes, no emoji. +- A PR is a proposal; it may be declined even if it works. The most common reason is section 1 of this file. + +## 7. Issues + +- GitHub issues are for reproducible bugs in **our image** and for feature requests. +- Agents must not file issues on a user's behalf from a guess. An issue needs a real reproduction on the latest image, with mods and custom scripts disabled, the compose/run command and full container logs from startup, using the issue template. +- Do not submit AI-generated root cause analyses or "security audits" of the image as issues. Scanner output about CVEs in upstream or distro packages is not actionable; images are rebuilt regularly to pull in distro fixes. +- Support questions must always be submitted by a human and go to [Discord](https://linuxserver.io/discord) or the [forum](https://github.com/orgs/linuxserver/discussions); see [how to get support](https://docs.linuxserver.io/general/how-to-get-support/). + +## 8. Quick self check before you finish + +- [ ] This change benefits most users of this image, and is not a mod, custom script, or upstream issue. +- [ ] Only hand-maintained files were edited (`Dockerfile*`, `root/**`, `readme-vars.yml`, rarely `jenkins-vars.yml`). +- [ ] Every Dockerfile variant got the same change; packages are alphabetical. +- [ ] Style matches the neighbouring code; shebang and shellcheck directive present; non-root / read-only guards preserved. +- [ ] Changelog entry added at the top of `changelogs:` with today's date as `DD.MM.YY:`. +- [ ] Image was built and run, including against an existing `/config`. +- [ ] The diff contains nothing the task did not require. +- [ ] PR description discloses AI use and a human has reviewed everything. diff --git a/Dockerfile b/Dockerfile index 61a1becf..cb672249 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.22 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.24 # set version label ARG BUILD_DATE @@ -22,44 +22,43 @@ RUN \ imagemagick-pdf \ imagemagick-svg \ libxml2 \ - php84-apcu \ - php84-bcmath \ - php84-bz2 \ - php84-dom \ - php84-exif \ - php84-ftp \ - php84-gd \ - php84-gmp \ - php84-imap \ - php84-intl \ - php84-ldap \ - php84-opcache \ - php84-pcntl \ - php84-pdo_mysql \ - php84-pdo_pgsql \ - php84-pdo_sqlite \ - php84-pecl-imagick \ - php84-pecl-memcached \ - php84-pecl-smbclient \ - php84-pgsql \ - php84-posix \ - php84-redis \ - php84-sodium \ - php84-sqlite3 \ - php84-sysvsem \ - php84-xmlreader \ + php85-apcu \ + php85-bcmath \ + php85-bz2 \ + php85-dom \ + php85-exif \ + php85-ftp \ + php85-gd \ + php85-gmp \ + php85-imap \ + php85-intl \ + php85-ldap \ + php85-pcntl \ + php85-pdo_mysql \ + php85-pdo_pgsql \ + php85-pdo_sqlite \ + php85-pecl-imagick \ + php85-pecl-memcached \ + php85-pecl-smbclient \ + php85-pgsql \ + php85-posix \ + php85-redis \ + php85-sodium \ + php85-sqlite3 \ + php85-sysvsem \ + php85-xmlreader \ rsync \ samba-client \ util-linux \ sudo && \ echo "**** configure php-fpm to pass env vars ****" && \ - sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php84/php-fpm.d/www.conf && \ - if ! grep -qxF 'clear_env = no' /etc/php84/php-fpm.d/www.conf; then echo 'clear_env = no' >> /etc/php84/php-fpm.d/www.conf; fi && \ - echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php84/php-fpm.conf && \ + sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php85/php-fpm.d/www.conf && \ + if ! grep -qxF 'clear_env = no' /etc/php85/php-fpm.d/www.conf; then echo 'clear_env = no' >> /etc/php85/php-fpm.d/www.conf; fi && \ + echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php85/php-fpm.conf && \ echo "**** configure php for nextcloud ****" && \ { \ echo 'apc.enable_cli=1'; \ - } >> /etc/php84/conf.d/apcu.ini && \ + } >> /etc/php85/conf.d/apcu.ini && \ { \ echo 'opcache.enable=1'; \ echo 'opcache.interned_strings_buffer=32'; \ @@ -68,8 +67,8 @@ RUN \ echo 'opcache.save_comments=1'; \ echo 'opcache.revalidate_freq=60'; \ echo 'opcache.jit=1255'; \ - echo 'opcache.jit_buffer_size=128M'; \ - } >> "/etc/php84/conf.d/00_opcache.ini" && \ + echo 'opcache.jit_buffer_size=8M'; \ + } >> "/etc/php85/conf.d/00_opcache.ini" && \ { \ echo 'memory_limit=-1'; \ echo 'upload_max_filesize=100G'; \ @@ -78,7 +77,7 @@ RUN \ echo 'max_execution_time=3600'; \ echo 'output_buffering=0'; \ echo 'always_populate_raw_post_data=-1'; \ - } >> "/etc/php84/conf.d/nextcloud.ini" && \ + } >> "/etc/php85/conf.d/nextcloud.ini" && \ echo "**** install nextcloud ****" && \ mkdir -p \ /app/www/src/ && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 86acbad4..6ee4978d 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.22 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.24 # set version label ARG BUILD_DATE @@ -22,44 +22,43 @@ RUN \ imagemagick-pdf \ imagemagick-svg \ libxml2 \ - php84-apcu \ - php84-bcmath \ - php84-bz2 \ - php84-dom \ - php84-exif \ - php84-ftp \ - php84-gd \ - php84-gmp \ - php84-imap \ - php84-intl \ - php84-ldap \ - php84-opcache \ - php84-pcntl \ - php84-pdo_mysql \ - php84-pdo_pgsql \ - php84-pdo_sqlite \ - php84-pecl-imagick \ - php84-pecl-memcached \ - php84-pecl-smbclient \ - php84-pgsql \ - php84-posix \ - php84-redis \ - php84-sodium \ - php84-sqlite3 \ - php84-sysvsem \ - php84-xmlreader \ + php85-apcu \ + php85-bcmath \ + php85-bz2 \ + php85-dom \ + php85-exif \ + php85-ftp \ + php85-gd \ + php85-gmp \ + php85-imap \ + php85-intl \ + php85-ldap \ + php85-pcntl \ + php85-pdo_mysql \ + php85-pdo_pgsql \ + php85-pdo_sqlite \ + php85-pecl-imagick \ + php85-pecl-memcached \ + php85-pecl-smbclient \ + php85-pgsql \ + php85-posix \ + php85-redis \ + php85-sodium \ + php85-sqlite3 \ + php85-sysvsem \ + php85-xmlreader \ rsync \ samba-client \ util-linux \ sudo && \ echo "**** configure php-fpm to pass env vars ****" && \ - sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php84/php-fpm.d/www.conf && \ - if ! grep -qxF 'clear_env = no' /etc/php84/php-fpm.d/www.conf; then echo 'clear_env = no' >> /etc/php84/php-fpm.d/www.conf; fi && \ - echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php84/php-fpm.conf && \ + sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php85/php-fpm.d/www.conf && \ + if ! grep -qxF 'clear_env = no' /etc/php85/php-fpm.d/www.conf; then echo 'clear_env = no' >> /etc/php85/php-fpm.d/www.conf; fi && \ + echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php85/php-fpm.conf && \ echo "**** configure php for nextcloud ****" && \ { \ echo 'apc.enable_cli=1'; \ - } >> /etc/php84/conf.d/apcu.ini && \ + } >> /etc/php85/conf.d/apcu.ini && \ { \ echo 'opcache.enable=1'; \ echo 'opcache.interned_strings_buffer=32'; \ @@ -68,8 +67,8 @@ RUN \ echo 'opcache.save_comments=1'; \ echo 'opcache.revalidate_freq=60'; \ echo 'opcache.jit=1255'; \ - echo 'opcache.jit_buffer_size=128M'; \ - } >> "/etc/php84/conf.d/00_opcache.ini" && \ + echo 'opcache.jit_buffer_size=8M'; \ + } >> "/etc/php85/conf.d/00_opcache.ini" && \ { \ echo 'memory_limit=-1'; \ echo 'upload_max_filesize=100G'; \ @@ -78,7 +77,7 @@ RUN \ echo 'max_execution_time=3600'; \ echo 'output_buffering=0'; \ echo 'always_populate_raw_post_data=-1'; \ - } >> "/etc/php84/conf.d/nextcloud.ini" && \ + } >> "/etc/php85/conf.d/nextcloud.ini" && \ echo "**** install nextcloud ****" && \ mkdir -p \ /app/www/src/ && \ diff --git a/Jenkinsfile b/Jenkinsfile index 0b1eb66b..5c834111 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,6 +51,57 @@ pipeline { ''' } } + /* ############################ + Bash Function For GHCR Retry + ############################ */ + // Create a reusable script for a ghcr retry bash function + stage("Create Bash Function"){ + steps{ + sh '''#! /bin/bash + # create our retry function + retry_ghcr() { + local max_attempts=7 + local base_delay=10 + local max_delay=90 + local attempt=1 + local errfile exit_code delay pause + errfile=$(mktemp) + while true; do + # run inside an if so a caller's set -e cannot abort before we get to retry + if "$@" 2> >(tee "${errfile}" >&2); then + exit_code=0 + else + exit_code=$? + fi + # make sure tee has finished writing before we read the file + wait $! 2>/dev/null || true + if [[ "${exit_code}" == "0" ]]; then + rm -f "${errfile}" + return 0 + elif ! grep -q -i -E "retry-after:|toomanyrequests|too many requests" "${errfile}"; then + rm -f "${errfile}" + return "${exit_code}" + elif (( attempt >= max_attempts )); then + rm -f "${errfile}" + echo "retry: $* failed after ${attempt} attempts (exit ${exit_code})" >&2 + return "${exit_code}" + else + # exponential delay: base * 2^(attempt-1), capped at max_delay + delay=$(( base_delay * 2 ** (attempt - 1) )) + (( delay > max_delay )) && delay="${max_delay}" + # jitter between half and full delay so parallel builds spread out + pause=$(( delay / 2 + RANDOM % (delay / 2 + 1) )) + echo "retry: attempt ${attempt}/${max_attempts} failed (exit ${exit_code}); waiting ${pause}s..." >&2 + sleep "${pause}" + ((attempt++)) + fi + done + } + + declare -f retry_ghcr > ${WORKSPACE}/retry_ghcr.sh + ''' + } + } // Setup all the basic environment variables needed for the build stage("Set ENV Variables base"){ steps{ @@ -75,8 +126,12 @@ pipeline { ''' script{ env.EXIT_STATUS = '' + env.CI_TEST_ATTEMPTED = '' + env.PUSH_ATTEMPTED = '' env.LS_RELEASE = sh( - script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:latest 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''', + script: '''#! /bin/bash + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:latest | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''', returnStdout: true).trim() env.LS_RELEASE_NOTES = sh( script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''', @@ -93,12 +148,16 @@ pipeline { env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/' env.PULL_REQUEST = env.CHANGE_ID - env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml' + env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig AGENTS.md ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml' if ( env.SYFT_IMAGE_TAG == null ) { env.SYFT_IMAGE_TAG = 'latest' } + if ( env.GITLAB_TIMEOUT == null ) { + env.GITLAB_TIMEOUT = '600' + } } echo "Using syft image tag ${SYFT_IMAGE_TAG}" + echo "Using gitlab registry timeout ${GITLAB_TIMEOUT}" sh '''#! /bin/bash echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" ''' script{ @@ -208,6 +267,7 @@ pipeline { env.META_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache' + env.CITEST_IMAGETAG = 'latest' } } } @@ -233,6 +293,7 @@ pipeline { env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/' env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache' + env.CITEST_IMAGETAG = 'develop' } } } @@ -258,6 +319,7 @@ pipeline { env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/' env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache' + env.CITEST_IMAGETAG = 'develop' } } } @@ -276,11 +338,13 @@ pipeline { } sh '''curl -sL https://raw.githubusercontent.com/linuxserver/docker-jenkins-builder/master/checkrun.sh | /bin/bash''' sh '''#! /bin/bash + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker pull ghcr.io/linuxserver/baseimage-alpine:3.23 docker run --rm \ -v ${WORKSPACE}:/mnt \ -e AWS_ACCESS_KEY_ID=\"${S3_KEY}\" \ -e AWS_SECRET_ACCESS_KEY=\"${S3_SECRET}\" \ - ghcr.io/linuxserver/baseimage-alpine:3.20 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\ + ghcr.io/linuxserver/baseimage-alpine:3.23 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\ apk add --no-cache python3 && \ python3 -m venv /lsiopy && \ pip install --no-cache-dir -U pip && \ @@ -302,7 +366,8 @@ pipeline { sh '''#! /bin/bash set -e TEMPDIR=$(mktemp -d) - docker pull ghcr.io/linuxserver/jenkins-builder:latest + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker pull ghcr.io/linuxserver/jenkins-builder:latest # Cloned repo paths for templating: # ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch master of ${LS_USER}/${LS_REPO} for running the jenkins builder on # ${TEMPDIR}/repo/${LS_REPO}: Cloned branch master of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github @@ -361,6 +426,7 @@ pipeline { sed -i 's|^changelogs:|# init diagram\\ninit_diagram:\\n\\n# changelog\\nchangelogs:|' readme-vars.yml fi mkdir -p ${TEMPDIR}/d2 + retry_ghcr docker pull ghcr.io/linuxserver/d2-builder:latest docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW="true" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:latest ls -al ${TEMPDIR}/d2 yq -ei ".init_diagram |= load_str(\\"${TEMPDIR}/d2/${CONTAINER_NAME}-latest.d2\\")" readme-vars.yml @@ -577,22 +643,25 @@ pipeline { steps { echo "Running on node: ${NODE_NAME}" sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile" - sh "docker buildx build \ - --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ - --label \"org.opencontainers.image.authors=linuxserver.io\" \ - --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-nextcloud/packages\" \ - --label \"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-nextcloud\" \ - --label \"org.opencontainers.image.source=https://github.com/linuxserver/docker-nextcloud\" \ - --label \"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\" \ - --label \"org.opencontainers.image.revision=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.vendor=linuxserver.io\" \ - --label \"org.opencontainers.image.licenses=GPL-3.0-only\" \ - --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.title=Nextcloud\" \ - --label \"org.opencontainers.image.description=[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are. Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home. \" \ - --no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \ - --provenance=true --sbom=true --builder=container --load \ - --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." + sh '''#! /bin/bash + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker buildx build \ + --label "org.opencontainers.image.created=${GITHUB_DATE}" \ + --label "org.opencontainers.image.authors=linuxserver.io" \ + --label "org.opencontainers.image.url=https://github.com/linuxserver/docker-nextcloud/packages" \ + --label "org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-nextcloud" \ + --label "org.opencontainers.image.source=https://github.com/linuxserver/docker-nextcloud" \ + --label "org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}" \ + --label "org.opencontainers.image.revision=${COMMIT_SHA}" \ + --label "org.opencontainers.image.vendor=linuxserver.io" \ + --label "org.opencontainers.image.licenses=GPL-3.0-only" \ + --label "org.opencontainers.image.ref.name=${COMMIT_SHA}" \ + --label "org.opencontainers.image.title=Nextcloud" \ + --label "org.opencontainers.image.description=[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are. Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home. " \ + --no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \ + --provenance=true --sbom=true --builder=container --load \ + --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION="${VERSION_TAG}" --build-arg BUILD_DATE=${GITHUB_DATE} . + ''' sh '''#! /bin/bash set -e IFS=',' read -ra CACHE <<< "$BUILDCACHE" @@ -611,17 +680,36 @@ pipeline { retry_backoff(5,5) { sh '''#! /bin/bash set -e + # run a registry.gitlab.com command under what is left of the gitlab time budget + gitlab_timeout() { + local remaining=$(( GITLAB_DEADLINE - SECONDS )) + if (( remaining <= 0 )); then + echo "gitlab timeout budget of ${GITLAB_TIMEOUT}s used up, skipping: $*" >&2 + return 124 + fi + timeout "${remaining}" "$@" + } + GITLAB_DEADLINE=$(( SECONDS + GITLAB_TIMEOUT )) + echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin + if [[ "${PACKAGE_CHECK}" != "true" ]]; then + declare -A pids IFS=',' read -ra CACHE <<< "$BUILDCACHE" for i in "${CACHE[@]}"; do - docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} & + if [[ "${i}" == *"registry.gitlab.com"* ]]; then + TIMEOUT_CMD="gitlab_timeout" + else + TIMEOUT_CMD="" + fi + ${TIMEOUT_CMD} docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} & + pids[$!]="$i" done - for p in $(jobs -p); do - wait "$p" || { echo "job $p failed" >&2; exit 1; } + for p in "${!pids[@]}"; do + wait "$p" || { if [[ "${pids[$p]}" != *"quay.io"* && "${pids[$p]}" != *"registry.gitlab.com"* ]]; then exit 1; fi; } done fi ''' @@ -643,22 +731,25 @@ pipeline { steps { echo "Running on node: ${NODE_NAME}" sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile" - sh "docker buildx build \ - --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ - --label \"org.opencontainers.image.authors=linuxserver.io\" \ - --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-nextcloud/packages\" \ - --label \"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-nextcloud\" \ - --label \"org.opencontainers.image.source=https://github.com/linuxserver/docker-nextcloud\" \ - --label \"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\" \ - --label \"org.opencontainers.image.revision=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.vendor=linuxserver.io\" \ - --label \"org.opencontainers.image.licenses=GPL-3.0-only\" \ - --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.title=Nextcloud\" \ - --label \"org.opencontainers.image.description=[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are. Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home. \" \ - --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \ - --provenance=true --sbom=true --builder=container --load \ - --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." + sh '''#! /bin/bash + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker buildx build \ + --label "org.opencontainers.image.created=${GITHUB_DATE}" \ + --label "org.opencontainers.image.authors=linuxserver.io" \ + --label "org.opencontainers.image.url=https://github.com/linuxserver/docker-nextcloud/packages" \ + --label "org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-nextcloud" \ + --label "org.opencontainers.image.source=https://github.com/linuxserver/docker-nextcloud" \ + --label "org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}" \ + --label "org.opencontainers.image.revision=${COMMIT_SHA}" \ + --label "org.opencontainers.image.vendor=linuxserver.io" \ + --label "org.opencontainers.image.licenses=GPL-3.0-only" \ + --label "org.opencontainers.image.ref.name=${COMMIT_SHA}" \ + --label "org.opencontainers.image.title=Nextcloud" \ + --label "org.opencontainers.image.description=[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are. Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home. " \ + --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \ + --provenance=true --sbom=true --builder=container --load \ + --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION="${VERSION_TAG}" --build-arg BUILD_DATE=${GITHUB_DATE} . + ''' sh '''#! /bin/bash set -e IFS=',' read -ra CACHE <<< "$BUILDCACHE" @@ -677,17 +768,36 @@ pipeline { retry_backoff(5,5) { sh '''#! /bin/bash set -e + # run a registry.gitlab.com command under what is left of the gitlab time budget + gitlab_timeout() { + local remaining=$(( GITLAB_DEADLINE - SECONDS )) + if (( remaining <= 0 )); then + echo "gitlab timeout budget of ${GITLAB_TIMEOUT}s used up, skipping: $*" >&2 + return 124 + fi + timeout "${remaining}" "$@" + } + GITLAB_DEADLINE=$(( SECONDS + GITLAB_TIMEOUT )) + echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin + if [[ "${PACKAGE_CHECK}" != "true" ]]; then + declare -A pids IFS=',' read -ra CACHE <<< "$BUILDCACHE" for i in "${CACHE[@]}"; do - docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} & + if [[ "${i}" == *"registry.gitlab.com"* ]]; then + TIMEOUT_CMD="gitlab_timeout" + else + TIMEOUT_CMD="" + fi + ${TIMEOUT_CMD} docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} & + pids[$!]="$i" done - for p in $(jobs -p); do - wait "$p" || { echo "job $p failed" >&2; exit 1; } + for p in "${!pids[@]}"; do + wait "$p" || { if [[ "${pids[$p]}" != *"quay.io"* && "${pids[$p]}" != *"registry.gitlab.com"* ]]; then exit 1; fi; } done fi ''' @@ -702,22 +812,64 @@ pipeline { steps { echo "Running on node: ${NODE_NAME}" sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile.aarch64" - sh "docker buildx build \ - --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ - --label \"org.opencontainers.image.authors=linuxserver.io\" \ - --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-nextcloud/packages\" \ - --label \"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-nextcloud\" \ - --label \"org.opencontainers.image.source=https://github.com/linuxserver/docker-nextcloud\" \ - --label \"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\" \ - --label \"org.opencontainers.image.revision=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.vendor=linuxserver.io\" \ - --label \"org.opencontainers.image.licenses=GPL-3.0-only\" \ - --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.title=Nextcloud\" \ - --label \"org.opencontainers.image.description=[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are. Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home. \" \ - --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \ - --provenance=true --sbom=true --builder=container --load \ - --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." + sh '''#! /bin/bash + # create our retry function + retry_ghcr() { + local max_attempts=7 + local base_delay=10 + local max_delay=90 + local attempt=1 + local errfile exit_code delay pause + errfile=$(mktemp) + while true; do + # run inside an if so a caller's set -e cannot abort before we get to retry + if "$@" 2> >(tee "${errfile}" >&2); then + exit_code=0 + else + exit_code=$? + fi + # make sure tee has finished writing before we read the file + wait $! 2>/dev/null || true + if [[ "${exit_code}" == "0" ]]; then + rm -f "${errfile}" + return 0 + elif ! grep -q -i -E "retry-after:|toomanyrequests|too many requests" "${errfile}"; then + rm -f "${errfile}" + return "${exit_code}" + elif (( attempt >= max_attempts )); then + rm -f "${errfile}" + echo "retry: $* failed after ${attempt} attempts (exit ${exit_code})" >&2 + return "${exit_code}" + else + # exponential delay: base * 2^(attempt-1), capped at max_delay + delay=$(( base_delay * 2 ** (attempt - 1) )) + (( delay > max_delay )) && delay="${max_delay}" + # jitter between half and full delay so parallel builds spread out + pause=$(( delay / 2 + RANDOM % (delay / 2 + 1) )) + echo "retry: attempt ${attempt}/${max_attempts} failed (exit ${exit_code}); waiting ${pause}s..." >&2 + sleep "${pause}" + ((attempt++)) + fi + done + } + + retry_ghcr docker buildx build \ + --label "org.opencontainers.image.created=${GITHUB_DATE}" \ + --label "org.opencontainers.image.authors=linuxserver.io" \ + --label "org.opencontainers.image.url=https://github.com/linuxserver/docker-nextcloud/packages" \ + --label "org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-nextcloud" \ + --label "org.opencontainers.image.source=https://github.com/linuxserver/docker-nextcloud" \ + --label "org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}" \ + --label "org.opencontainers.image.revision=${COMMIT_SHA}" \ + --label "org.opencontainers.image.vendor=linuxserver.io" \ + --label "org.opencontainers.image.licenses=GPL-3.0-only" \ + --label "org.opencontainers.image.ref.name=${COMMIT_SHA}" \ + --label "org.opencontainers.image.title=Nextcloud" \ + --label "org.opencontainers.image.description=[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are. Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home. " \ + --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \ + --provenance=true --sbom=true --builder=container --load \ + --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION="${VERSION_TAG}" --build-arg BUILD_DATE=${GITHUB_DATE} . + ''' sh '''#! /bin/bash set -e IFS=',' read -ra CACHE <<< "$BUILDCACHE" @@ -736,17 +888,35 @@ pipeline { retry_backoff(5,5) { sh '''#! /bin/bash set -e + # run a registry.gitlab.com command under what is left of the gitlab time budget + gitlab_timeout() { + local remaining=$(( GITLAB_DEADLINE - SECONDS )) + if (( remaining <= 0 )); then + echo "gitlab timeout budget of ${GITLAB_TIMEOUT}s used up, skipping: $*" >&2 + return 124 + fi + timeout "${remaining}" "$@" + } + GITLAB_DEADLINE=$(( SECONDS + GITLAB_TIMEOUT )) + echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin if [[ "${PACKAGE_CHECK}" != "true" ]]; then + declare -A pids IFS=',' read -ra CACHE <<< "$BUILDCACHE" for i in "${CACHE[@]}"; do - docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} & + if [[ "${i}" == *"registry.gitlab.com"* ]]; then + TIMEOUT_CMD="gitlab_timeout" + else + TIMEOUT_CMD="" + fi + ${TIMEOUT_CMD} docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} & + pids[$!]="$i" done - for p in $(jobs -p); do - wait "$p" || { echo "job $p failed" >&2; exit 1; } + for p in "${!pids[@]}"; do + wait "$p" || { if [[ "${pids[$p]}" != *"quay.io"* && "${pids[$p]}" != *"registry.gitlab.com"* ]]; then exit 1; fi; } done fi ''' @@ -781,6 +951,8 @@ pipeline { LOCAL_CONTAINER=${IMAGE}:${META_TAG} fi touch ${TEMPDIR}/package_versions.txt + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker pull ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} docker run --rm \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ -v ${TEMPDIR}:/tmp \ @@ -860,6 +1032,7 @@ pipeline { script{ env.CI_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/index.html' env.CI_JSON_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/report.json' + env.CI_TEST_ATTEMPTED = 'true' } sh '''#! /bin/bash set -e @@ -871,9 +1044,10 @@ pipeline { CI_DOCKERENV="LSIO_FIRST_PARTY=true" fi fi - docker pull ghcr.io/linuxserver/ci:latest + source ${WORKSPACE}/retry_ghcr.sh + retry_ghcr docker pull ghcr.io/linuxserver/ci:${CITEST_IMAGETAG} if [ "${MULTIARCH}" == "true" ]; then - docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} --platform=arm64 + retry_ghcr docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} --platform=arm64 docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG} fi docker run --rm \ @@ -895,7 +1069,9 @@ pipeline { -e WEB_PATH=\"${CI_WEBPATH}\" \ -e NODE_NAME=\"${NODE_NAME}\" \ -e SYFT_IMAGE_TAG=\"${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\" \ - -t ghcr.io/linuxserver/ci:latest \ + -e COMMIT_SHA=\"${COMMIT_SHA}\" \ + -e BUILD_NUMBER=\"${BUILD_NUMBER}\" \ + -t ghcr.io/linuxserver/ci:${CITEST_IMAGETAG} \ python3 test_build.py''' } } @@ -910,10 +1086,29 @@ pipeline { environment name: 'EXIT_STATUS', value: '' } steps { + script{ + env.PUSH_ATTEMPTED = 'true' + } retry_backoff(5,5) { sh '''#! /bin/bash set -e + # run a registry.gitlab.com command under what is left of the gitlab time budget + gitlab_timeout() { + local remaining=$(( GITLAB_DEADLINE - SECONDS )) + if (( remaining <= 0 )); then + echo "gitlab timeout budget of ${GITLAB_TIMEOUT}s used up, skipping: $*" >&2 + return 124 + fi + timeout "${remaining}" "$@" + } + GITLAB_DEADLINE=$(( SECONDS + GITLAB_TIMEOUT )) + for PUSHIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do + if [[ "${PUSHIMAGE}" == "${GITLABIMAGE}" ]]; then + TIMEOUT_CMD="gitlab_timeout" + else + TIMEOUT_CMD="" + fi [[ ${PUSHIMAGE%%/*} =~ \\. ]] && PUSHIMAGEPLUS="${PUSHIMAGE}" || PUSHIMAGEPLUS="docker.io/${PUSHIMAGE}" IFS=',' read -ra CACHE <<< "$BUILDCACHE" for i in "${CACHE[@]}"; do @@ -921,9 +1116,11 @@ pipeline { CACHEIMAGE=${i} fi done - docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:latest -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + ${TIMEOUT_CMD} docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:latest -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \ + { if [[ "${PUSHIMAGE}" != "${QUAYIMAGE}" && "${PUSHIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } if [ -n "${SEMVER}" ]; then - docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + ${TIMEOUT_CMD} docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \ + { if [[ "${PUSHIMAGE}" != "${QUAYIMAGE}" && "${PUSHIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } fi done ''' @@ -937,31 +1134,66 @@ pipeline { environment name: 'EXIT_STATUS', value: '' } steps { + script{ + env.PUSH_ATTEMPTED = 'true' + } retry_backoff(5,5) { sh '''#! /bin/bash set -e + # run a registry.gitlab.com command under what is left of the gitlab time budget + gitlab_timeout() { + local remaining=$(( GITLAB_DEADLINE - SECONDS )) + if (( remaining <= 0 )); then + echo "gitlab timeout budget of ${GITLAB_TIMEOUT}s used up, skipping: $*" >&2 + return 124 + fi + timeout "${remaining}" "$@" + } + GITLAB_DEADLINE=$(( SECONDS + GITLAB_TIMEOUT )) + for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do - [[ ${MANIFESTIMAGE%%/*} =~ \\. ]] && MANIFESTIMAGEPLUS="${MANIFESTIMAGE}" || MANIFESTIMAGEPLUS="docker.io/${MANIFESTIMAGE}" + if [[ "${MANIFESTIMAGE}" == "${GITLABIMAGE}" ]]; then + TIMEOUT_CMD="gitlab_timeout" + else + TIMEOUT_CMD="" + fi + if [[ "${MANIFESTIMAGE%%/*}" =~ \\. ]]; then + MANIFESTIMAGEPLUS="${MANIFESTIMAGE}" + else + MANIFESTIMAGEPLUS="docker.io/${MANIFESTIMAGE}" + fi IFS=',' read -ra CACHE <<< "$BUILDCACHE" for i in "${CACHE[@]}"; do if [[ "${MANIFESTIMAGEPLUS}" == "$(cut -d "/" -f1 <<< ${i})"* ]]; then CACHEIMAGE=${i} fi done - docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} - docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-latest -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} + ${TIMEOUT_CMD} docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } + ${TIMEOUT_CMD} docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-latest -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } if [ -n "${SEMVER}" ]; then - docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} - docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} + ${TIMEOUT_CMD} docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } + ${TIMEOUT_CMD} docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } fi done for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do - docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest - docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} - - docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} + if [[ "${MANIFESTIMAGE}" == "${GITLABIMAGE}" ]]; then + TIMEOUT_CMD="gitlab_timeout" + else + TIMEOUT_CMD="" + fi + ${TIMEOUT_CMD} docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } + ${TIMEOUT_CMD} docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } + ${TIMEOUT_CMD} docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } if [ -n "${SEMVER}" ]; then - docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} + ${TIMEOUT_CMD} docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} || \ + { if [[ "${MANIFESTIMAGE}" != "${QUAYIMAGE}" && "${MANIFESTIMAGE}" != "${GITLABIMAGE}" ]]; then exit 1; fi; } fi done ''' @@ -979,23 +1211,41 @@ pipeline { environment name: 'EXIT_STATUS', value: '' } steps { - echo "Pushing New tag for current commit ${META_TAG}" - sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \ - -d '{"tag":"'${META_TAG}'",\ - "object": "'${COMMIT_SHA}'",\ - "message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master",\ - "type": "commit",\ - "tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' ''' - echo "Pushing New release for Tag" sh '''#! /bin/bash - echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json - echo '{"tag_name":"'${META_TAG}'",\ - "target_commitish": "master",\ - "name": "'${META_TAG}'",\ - "body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start - printf '","draft": false,"prerelease": false}' >> releasebody.json - paste -d'\\0' start releasebody.json > releasebody.json.done - curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done''' + echo "Auto-generating release notes" + if [ "$(git tag --points-at HEAD)" != "" ]; then + echo "Existing tag points to current commit, suggesting no new LS changes" + AUTO_RELEASE_NOTES="No changes" + else + AUTO_RELEASE_NOTES=$(curl -fsL -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github+json" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases/generate-notes \ + -d '{"tag_name":"'${META_TAG}'",\ + "target_commitish": "master"}' \ + | jq -r '.body' | sed 's|## What.s Changed||') + fi + echo "Pushing New tag for current commit ${META_TAG}" + curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \ + -d '{"tag":"'${META_TAG}'",\ + "object": "'${COMMIT_SHA}'",\ + "message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master",\ + "type": "commit",\ + "tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' + echo "Pushing New release for Tag" + curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/nextcloud-releases/server/releases/tags/v${EXT_RELEASE} | jq -r '. |.body' > releasebody.json + jq -n \ + --arg tag_name "$META_TAG" \ + --arg target_commitish "master" \ + --arg ci_url "${CI_URL:-N/A}" \ + --arg ls_notes "$AUTO_RELEASE_NOTES" \ + --arg remote_notes "$(cat releasebody.json)" \ + '{ + "tag_name": $tag_name, + "target_commitish": $target_commitish, + "name": $tag_name, + "body": ("**CI Report:**\\n\\n" + $ci_url + "\\n\\n**LinuxServer Changes:**\\n\\n" + $ls_notes + "\\n\\n**Remote Changes:**\\n\\n" + $remote_notes), + "draft": false, + "prerelease": false }' > releasebody.json.done + curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done + ''' } } // Add protection to the release branch @@ -1033,98 +1283,13 @@ EOF ) ''' } } - // If this is a Pull request send the CI link as a comment on it - stage('Pull Request Comment') { - when { - not {environment name: 'CHANGE_ID', value: ''} - environment name: 'EXIT_STATUS', value: '' - } - steps { - sh '''#! /bin/bash - # Function to retrieve JSON data from URL - get_json() { - local url="$1" - local response=$(curl -s "$url") - if [ $? -ne 0 ]; then - echo "Failed to retrieve JSON data from $url" - return 1 - fi - local json=$(echo "$response" | jq .) - if [ $? -ne 0 ]; then - echo "Failed to parse JSON data from $url" - return 1 - fi - echo "$json" - } - - build_table() { - local data="$1" - - # Get the keys in the JSON data - local keys=$(echo "$data" | jq -r 'to_entries | map(.key) | .[]') - - # Check if keys are empty - if [ -z "$keys" ]; then - echo "JSON report data does not contain any keys or the report does not exist." - return 1 - fi - - # Build table header - local header="| Tag | Passed |\\n| --- | --- |\\n" - - # Loop through the JSON data to build the table rows - local rows="" - for build in $keys; do - local status=$(echo "$data" | jq -r ".[\\"$build\\"].test_success") - if [ "$status" = "true" ]; then - status="✅" - else - status="❌" - fi - local row="| "$build" | "$status" |\\n" - rows="${rows}${row}" - done - - local table="${header}${rows}" - local escaped_table=$(echo "$table" | sed 's/\"/\\\\"/g') - echo "$escaped_table" - } - - if [[ "${CI}" = "true" ]]; then - # Retrieve JSON data from URL - data=$(get_json "$CI_JSON_URL") - # Create table from JSON data - table=$(build_table "$data") - echo -e "$table" - - curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ - -d "{\\"body\\": \\"I am a bot, here are the test results for this PR: \\n${CI_URL}\\n${SHELLCHECK_URL}\\n${table}\\"}" - else - curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ - -d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR: \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}" - fi - ''' - - } - } } /* ###################### - Send status to Discord + Comment on PR and Send status to Discord ###################### */ post { always { - sh '''#!/bin/bash - rm -rf /config/.ssh/id_sign - rm -rf /config/.ssh/id_sign.pub - git config --global --unset gpg.format - git config --global --unset user.signingkey - git config --global --unset commit.gpgsign - ''' - script{ + script { env.JOB_DATE = sh( script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''', returnStdout: true).trim() @@ -1167,6 +1332,94 @@ EOF "username": "Jenkins"}' ${BUILDS_DISCORD} ''' } } + script { + if (env.GITHUBIMAGE =~ /lspipepr/){ + if (env.CI_TEST_ATTEMPTED == "true" || env.PUSH_ATTEMPTED == "true"){ + sh '''#! /bin/bash + # Function to retrieve JSON data from URL + get_json() { + local url="$1" + local response=$(curl -s "$url") + if [ $? -ne 0 ]; then + echo "Failed to retrieve JSON data from $url" + return 1 + fi + local json=$(echo "$response" | jq .) + if [ $? -ne 0 ]; then + echo "Failed to parse JSON data from $url" + return 1 + fi + echo "$json" + } + + build_table() { + local data="$1" + + # Get the keys in the JSON data + local keys=$(echo "$data" | jq -r 'to_entries | map(.key) | .[]') + + # Check if keys are empty + if [ -z "$keys" ]; then + echo "JSON report data does not contain any keys or the report does not exist." + return 1 + fi + + # Build table header + local header="| Tag | Passed |\\n| --- | --- |\\n" + + # Loop through the JSON data to build the table rows + local rows="" + for build in $keys; do + local status=$(echo "$data" | jq -r ".[\\"$build\\"].test_success") + if [ "$status" = "true" ]; then + status="✅" + else + status="❌" + fi + local row="| "$build" | "$status" |\\n" + rows="${rows}${row}" + done + + local table="${header}${rows}" + local escaped_table=$(echo "$table" | sed 's/\"/\\\\"/g') + echo "$escaped_table" + } + + if [[ "${CI}" = "true" ]]; then + # Retrieve JSON data from URL + data=$(get_json "$CI_JSON_URL") + # Create table from JSON data + table=$(build_table "$data") + echo -e "$table" + + curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ + -d "{\\"body\\": \\"I am a bot, here are the test results for this PR for commit ${COMMIT_SHA:0:7} : \\n${CI_URL}\\n${SHELLCHECK_URL}\\n${table}\\"}" + else + curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ + -d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR for commit ${COMMIT_SHA:0:7} : \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}" + fi + ''' + } else { + sh '''#! /bin/bash + curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ + -d "{\\"body\\": \\"I am a bot, the build for PR commit ${COMMIT_SHA:0:7} failed and as a result no CI test was attempted and no images were pushed.\\"}" + ''' + } + } + } + sh '''#!/bin/bash + rm -rf /config/.ssh/id_sign + rm -rf /config/.ssh/id_sign.pub + git config --global --unset gpg.format + git config --global --unset user.signingkey + git config --global --unset commit.gpgsign + ''' } cleanup { sh '''#! /bin/bash diff --git a/README.md b/README.md index a7efc8df..9bdb8b33 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!") [![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://linuxserver.io/discord "realtime support / chat with the community and the team.") -[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io "post on our community forum.") +[![Discussions](https://img.shields.io/badge/Github-Discussions-94398d?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/orgs/linuxserver/discussions "post on our community forum.") [![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver "view the source for all of our repositories.") [![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget") @@ -20,7 +20,7 @@ Find us at: * [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more! * [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team. -* [Discourse](https://discourse.linuxserver.io) - post on our community forum. +* [Discussions](https://github.com/orgs/linuxserver/discussions) - post on our community forum. * [GitHub](https://github.com/linuxserver) - view the source for all of our repositories. * [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget @@ -135,7 +135,7 @@ If you are using a reverse proxy which validates certificates, you need to [disa To help you get started creating a container from this image you can either use docker-compose or the docker cli. >[!NOTE] ->Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided. +>Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided. ### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose)) @@ -347,6 +347,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **14.10.26:** - Rebase to Alpine 3.24 with php 8.5. Tweak opcache settings according to upstream docs. Import upstream release notes in Github releases. * **10.07.25:** - Rebase to Alpine 3.22. * **12.02.25:** - Rebase to Alpine 3.21. * **09.01.25:** - Fix uploading large files. Existing users should update their nginx confs. diff --git a/jenkins-vars.yml b/jenkins-vars.yml index a6ad6182..121b9829 100644 --- a/jenkins-vars.yml +++ b/jenkins-vars.yml @@ -4,6 +4,8 @@ project_name: docker-nextcloud external_type: na custom_version_command: "curl -sX GET https://api.github.com/repos/nextcloud/server/releases | jq -r '.[] | select(.prerelease != true) | .tag_name' | sed 's|^v||g' | sort -rV | head -1" +custom_release_notes_command: |- + curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/nextcloud-releases/server/releases/tags/v${EXT_RELEASE} | jq -r '. |.body' > releasebody.json release_type: stable release_tag: latest ls_branch: master diff --git a/package_versions.txt b/package_versions.txt index bddd89f2..1246d99a 100755 --- a/package_versions.txt +++ b/package_versions.txt @@ -1,571 +1,570 @@ -NAME VERSION TYPE -Hidden Input 1, 0, 0, 0 binary -Process Wrapper 0.0.0.0 binary (+1 duplicate) -acl-libs 2.3.2-r1 apk -activity 4.0.0 npm -agetty 2.41-r9 apk -alpine-baselayout 3.7.0-r0 apk -alpine-baselayout-data 3.7.0-r0 apk -alpine-keys 2.5-r0 apk -alpine-release 3.22.1-r0 apk -alsa-lib 1.2.14-r0 apk -amphp/amp v2.6.4 php-composer (+1 duplicate) -amphp/byte-stream v1.8.2 php-composer (+1 duplicate) -amphp/parallel v1.4.3 php-composer -amphp/parser v1.1.1 php-composer -amphp/process v1.1.9 php-composer -amphp/serialization v1.0.0 php-composer -amphp/sync v1.4.2 php-composer -andrewdalpino/okbloomer 1.0.0 php-composer -anstream 0.6.5 rust-crate -anstyle 1.0.4 rust-crate -anstyle-parse 0.2.3 rust-crate -anstyle-query 1.0.2 rust-crate -anyhow 1.0.79 rust-crate -anyhow 1.0.98 rust-crate -aom-libs 3.12.1-r0 apk -apache2-utils 2.4.65-r0 apk -apk-tools 2.14.9-r2 apk -app_api 1.0.0 npm -apr 1.7.5-r0 apk -apr-util 1.6.3-r1 apk -arg_enum_proc_macro 0.3.4 rust-crate -argon2-libs 20190702-r5 apk -arrayvec 0.7.4 rust-crate -av-metrics 0.9.1 rust-crate -av1-grain 0.2.3 rust-crate -avahi-libs 0.8-r21 apk -aws/aws-crt-php v1.2.7 php-composer -aws/aws-sdk-php 3.324.13 php-composer -bamarni/composer-bin-plugin 1.8.2 php-composer (+1 duplicate) -bantu/ini-get-wrapper v1.0.1 php-composer -bash 5.2.37-r0 apk -bitflags 2.4.1 rust-crate -bitstream-io 2.2.0 rust-crate -bitstream-io 2.6.0 rust-crate -bitvec 1.0.1 rust-crate -bitvec_helpers 3.1.6 rust-crate -blkid 2.41-r9 apk -brick/math 0.12.1 php-composer -brotli-libs 1.1.0-r2 apk -bruteforcesettings 4.0.0 npm -busybox 1.37.0-r18 apk -busybox-binsh 1.37.0-r18 apk -c-ares 1.34.5-r0 apk -c-client 2007f-r15 apk -ca-certificates 20250619-r0 apk -ca-certificates-bundle 20250619-r0 apk -cairo 1.18.4-r0 apk -catatonit 0.2.1-r0 apk -cfdisk 2.41-r9 apk -cfg-if 1.0.0 rust-crate -christian-riesen/base32 1.6.0 php-composer -cjson 1.7.18-r1 apk -clap 4.4.14 rust-crate -clap_builder 4.4.14 rust-crate -clap_complete 4.4.6 rust-crate -clap_derive 4.4.7 rust-crate -clap_lex 0.6.0 rust-crate -colorchoice 1.0.0 rust-crate -composer 2.8.10 binary -composer/pcre 3.3.1 php-composer -composer/semver 3.4.2 php-composer -composer/xdebug-handler 3.0.5 php-composer -console 0.15.8 rust-crate -coreutils 9.7-r1 apk -coreutils-env 9.7-r1 apk -coreutils-fmt 9.7-r1 apk -coreutils-sha512sum 9.7-r1 apk -crc 3.3.0 rust-crate -crc-catalog 2.4.0 rust-crate -crossbeam 0.8.4 rust-crate -crossbeam-channel 0.5.11 rust-crate -crossbeam-deque 0.8.5 rust-crate -crossbeam-epoch 0.9.18 rust-crate -crossbeam-queue 0.3.11 rust-crate -crossbeam-utils 0.8.19 rust-crate -cups-libs 2.4.11-r0 apk -curl 8.14.1-r1 apk -cweagans/composer-patches 1.7.3 php-composer -dbus-libs 1.16.2-r1 apk -deepdiver/zipstreamer v2.0.3 php-composer -deepdiver1975/tarstreamer v2.1.0 php-composer -dmesg 2.41-r9 apk -dnoegel/php-xdg-base-dir v0.1.1 php-composer -doctrine/cache 2.2.0 php-composer -doctrine/dbal 3.9.4 php-composer -doctrine/deprecations 1.1.3 php-composer -doctrine/deprecations 1.1.4 php-composer -doctrine/event-manager 2.0.1 php-composer -doctrine/lexer 3.0.1 php-composer -dolby_vision 3.3.1 rust-crate -egulias/email-validator 4.0.3 php-composer -either 1.9.0 rust-crate -errno 0.3.8 rust-crate -felixfbecker/advanced-json-rpc v3.2.1 php-composer -felixfbecker/language-server-protocol v1.5.2 php-composer -fern 0.6.2 rust-crate -ffmpeg 6.1.2-r2 apk -ffmpeg-libavcodec 6.1.2-r2 apk -ffmpeg-libavdevice 6.1.2-r2 apk -ffmpeg-libavfilter 6.1.2-r2 apk -ffmpeg-libavformat 6.1.2-r2 apk -ffmpeg-libavutil 6.1.2-r2 apk -ffmpeg-libpostproc 6.1.2-r2 apk -ffmpeg-libswresample 6.1.2-r2 apk -ffmpeg-libswscale 6.1.2-r2 apk -fftw-double-libs 3.3.10-r6 apk -fidry/cpu-core-counter 1.2.0 php-composer -files_downloadlimit 4.0.0 npm -files_pdfviewer 4.0.0 npm -findmnt 2.41-r9 apk -findutils 4.10.0-r0 apk -firstrunwizard 4.0.0 npm -flock 2.41-r9 apk -fontconfig 2.15.0-r3 apk -freetype 2.13.3-r0 apk -fribidi 1.0.16-r1 apk -fstrim 2.41-r9 apk -funty 2.0.0 rust-crate -fusonic/opengraph v2.3.0 php-composer -gdbm 1.24-r0 apk -gdk-pixbuf 2.42.12-r1 apk -getrandom 0.2.12 rust-crate -ghostscript 10.05.1-r0 apk -giflib 5.2.2-r1 apk -giggsey/libphonenumber-for-php-lite 8.13.48 php-composer -git 2.49.1-r0 apk -git-init-template 2.49.1-r0 apk -glib 2.84.3-r0 apk -glslang-libs 1.4.309.0-r0 apk -gmp 6.3.0-r3 apk -gnu-libiconv 1.17-r2 apk -gnu-libiconv-libs 1.17-r2 apk -gnutls 3.8.8-r0 apk -graphite2 1.3.14-r6 apk -guzzlehttp/guzzle 7.9.2 php-composer -guzzlehttp/promises 2.0.4 php-composer -guzzlehttp/psr7 2.7.0 php-composer -guzzlehttp/uri-template v1.0.3 php-composer -harfbuzz 11.2.1-r0 apk -heck 0.4.1 rust-crate -hexdump 2.41-r9 apk -hexogen/kdtree v0.2.6 php-composer -hwdata-pci 0.395-r0 apk -icewind/searchdav v3.1.0 php-composer -icewind/smb v3.7.0 php-composer -icewind/streams v0.7.7 php-composer (+1 duplicate) -icu-data-en 76.1-r1 apk -icu-libs 76.1-r1 apk -imagemagick 7.1.2.0-r0 apk -imagemagick-heic 7.1.2.0-r0 apk -imagemagick-jpeg 7.1.2.0-r0 apk -imagemagick-jxl 7.1.2.0-r0 apk -imagemagick-libs 7.1.2.0-r0 apk -imagemagick-openexr 7.1.2.0-r0 apk -imagemagick-pango 7.1.2.0-r0 apk -imagemagick-pdf 7.1.2.0-r0 apk -imagemagick-svg 7.1.2.0-r0 apk -imagemagick-tiff 7.1.2.0-r0 apk -imagemagick-webp 7.1.2.0-r0 apk -imath 3.1.12-r0 apk -interpolate_name 0.2.4 rust-crate -itertools 0.10.5 rust-crate -itertools 0.12.0 rust-crate -ivf 0.1.3 rust-crate -jansson 2.14.1-r0 apk -jbig2dec 0.20-r0 apk -jq 1.8.0-r0 apk -justinrainbow/json-schema 5.3.0 php-composer -kornrunner/blurhash v1.2.2 php-composer -lab 0.11.0 rust-crate -lame-libs 3.100-r5 apk -laravel/serializable-closure v1.3.5 php-composer -lazy_static 1.4.0 rust-crate -lcms2 2.16-r0 apk -lcobucci/clock 3.0.0 php-composer -ldb 4.21.4-r4 apk -libSvtAv1Enc 2.3.0-r0 apk -libapk2 2.14.9-r2 apk -libarchive 3.8.1-r0 apk -libass 0.17.3-r0 apk -libasyncns 0.8-r4 apk -libattr 2.5.2-r2 apk -libauth-samba 4.21.4-r4 apk -libavif 1.3.0-r0 apk -libblkid 2.41-r9 apk -libbluray 1.3.4-r1 apk -libbsd 0.12.2-r0 apk -libbz2 1.0.8-r6 apk -libc 0.2.155 rust-crate -libc 0.2.172 rust-crate -libcap-ng 0.8.5-r0 apk -libcap2 2.76-r0 apk -libcrypto3 3.5.1-r0 apk -libcurl 8.14.1-r1 apk -libdav1d 1.5.1-r0 apk -libde265 1.0.15-r1 apk -libdeflate 1.23-r0 apk -libdovi 3.3.1-r1 apk -libdrm 2.4.124-r0 apk -libeconf 0.6.3-r0 apk -libedit 20250104.3.1-r1 apk -libevent 2.1.12-r8 apk -libexpat 2.7.1-r0 apk -libfdisk 2.41-r9 apk -libffi 3.4.8-r0 apk -libflac 1.4.3-r1 apk -libformw 6.5_p20250503-r0 apk -libgcc 14.2.0-r6 apk -libgomp 14.2.0-r6 apk -libheif 1.19.8-r0 apk -libhwy 1.0.7-r1 apk -libice 1.1.2-r0 apk -libidn2 2.3.7-r0 apk -libintl 0.24.1-r0 apk -libjpeg-turbo 3.1.0-r0 apk -libjxl 0.10.3-r2 apk -libldap 2.6.8-r0 apk -libltdl 2.5.4-r1 apk -libmd 1.1.0-r0 apk -libmemcached-libs 1.1.4-r1 apk -libmount 2.41-r9 apk -libncursesw 6.5_p20250503-r0 apk -libogg 1.3.5-r5 apk -libopenmpt 0.7.15-r0 apk -libpanelw 6.5_p20250503-r0 apk -libpciaccess 0.18.1-r0 apk -libplacebo 6.338.2-r3 apk -libpng 1.6.47-r0 apk -libpq 17.5-r0 apk -libproc2 4.0.4-r3 apk -libpsl 0.21.5-r3 apk -libpulse 17.0-r5 apk -librist 0.2.10-r1 apk -librsvg 2.60.0-r0 apk -libsasl 2.1.28-r8 apk -libsharpyuv 1.5.0-r0 apk -libsm 1.2.5-r0 apk -libsmartcols 2.41-r9 apk -libsmbclient 4.21.4-r4 apk -libsndfile 1.2.2-r2 apk -libsodium 1.0.20-r0 apk -libsrt 1.5.3-r1 apk -libssh 0.11.2-r0 apk -libssl3 3.5.1-r0 apk -libstdc++ 14.2.0-r6 apk -libtasn1 4.20.0-r0 apk -libtheora 1.1.1-r18 apk -libunibreak 6.1-r0 apk -libunistring 1.3-r0 apk -libuuid 2.41-r9 apk -libva 2.22.0-r1 apk -libvdpau 1.5-r4 apk -libvorbis 1.3.7-r2 apk -libvpx 1.15.0-r0 apk -libwbclient 4.21.4-r4 apk -libwebp 1.5.0-r0 apk -libwebpdemux 1.5.0-r0 apk -libwebpmux 1.5.0-r0 apk -libx11 1.8.11-r0 apk -libxau 1.0.12-r0 apk -libxcb 1.17.0-r0 apk -libxdmcp 1.1.5-r1 apk -libxext 1.3.6-r2 apk -libxfixes 6.0.1-r4 apk -libxft 2.3.8-r3 apk -libxml2 2.13.8-r0 apk -libxpm 3.5.17-r0 apk -libxrender 0.9.12-r0 apk -libxt 1.3.1-r0 apk -libxxhash 0.8.3-r0 apk -libyuv 0.0.1887.20251502-r1 apk -libzip 1.11.4-r0 apk -libzmq 4.3.5-r2 apk -lilv-libs 0.24.26-r0 apk -linux-pam 1.7.0-r4 apk -linux-raw-sys 0.4.12 rust-crate -lmdb 0.9.33-r0 apk -log 0.4.20 rust-crate -logger 2.41-r9 apk -logreader 4.0.0 npm -logrotate 3.21.0-r1 apk -losetup 2.41-r9 apk -lsblk 2.41-r9 apk -lscpu 2.41-r9 apk -lz4-libs 1.10.0-r0 apk -masterminds/html5 2.9.0 php-composer -maybe-rayon 0.1.1 rust-crate -mbedtls 3.6.4-r0 apk -mcookie 2.41-r9 apk -memchr 2.7.1 rust-crate -mexitek/phpcolors v1.0.4 php-composer -microsoft/azure-storage-blob 1.5.4 php-composer -microsoft/azure-storage-common 1.5.2 php-composer -minimal-lexical 0.2.1 rust-crate -mlocati/ip-lib 1.18.1 php-composer -mount 2.41-r9 apk -mpg123-libs 1.32.10-r0 apk -mtdowling/jmespath.php 2.8.0 php-composer -musl 1.2.5-r10 apk -musl-utils 1.2.5-r10 apk -nano 8.4-r0 apk -ncurses-terminfo-base 6.5_p20250503-r0 apk -netcat-openbsd 1.229.1-r0 apk -netresearch/jsonmapper v4.5.0 php-composer -nettle 3.10.1-r0 apk -new_debug_unreachable 1.0.4 rust-crate -nextcloud 1.0.0 npm -nextcloud/coding-standard v1.2.1 php-composer -nextcloud/lognormalizer v1.0.0 php-composer -nextcloud/ocp dev-master php-composer -nghttp2-libs 1.65.0-r0 apk -nginx 1.28.0-r3 apk -nikic/php-parser v4.19.2 php-composer -nom 7.1.3 rust-crate -noop_proc_macro 0.3.0 rust-crate -notifications 4.0.0 npm -num-bigint 0.4.4 rust-crate -num-derive 0.4.1 rust-crate -num-integer 0.1.45 rust-crate -num-rational 0.4.1 rust-crate -num-traits 0.2.17 rust-crate -numactl 2.0.18-r0 apk -once_cell 1.19.0 rust-crate -onevpl-libs 2023.3.1-r2 apk -oniguruma 6.9.10-r0 apk -openexr-libiex 3.3.2-r0 apk -openexr-libilmthread 3.3.2-r0 apk -openexr-libopenexr 3.3.2-r0 apk -openexr-libopenexrcore 3.3.2-r0 apk -openjpeg 2.5.3-r0 apk -openssl 3.5.1-r0 apk -opus 1.5.2-r1 apk -orc 0.4.40-r1 apk -p11-kit 0.25.5-r2 apk -pango 1.56.3-r0 apk -paragonie/constant_time_encoding v2.6.3 php-composer -partx 2.41-r9 apk -password_policy 3.0.0 npm -paste 1.0.14 rust-crate -pcre2 10.43-r1 apk -pear/archive_tar 1.5.0 php-composer -pear/console_getopt v1.4.3 php-composer -pear/pear-core-minimal v1.10.15 php-composer -pear/pear_exception v1.0.2 php-composer -photos 4.0.0 npm -php-cs-fixer/shim v3.62.0 php-composer -php-http/guzzle7-adapter 1.0.0 php-composer -php-http/httplug 2.2.0 php-composer -php-http/promise 1.1.0 php-composer -php-opencloud/openstack v3.10.0 php-composer -php84 8.4.10-r0 apk -php84-bcmath 8.4.10-r0 apk -php84-bz2 8.4.10-r0 apk -php84-common 8.4.10-r0 apk -php84-ctype 8.4.10-r0 apk -php84-curl 8.4.10-r0 apk -php84-dom 8.4.10-r0 apk -php84-exif 8.4.10-r0 apk -php84-fileinfo 8.4.10-r0 apk -php84-fpm 8.4.10-r0 apk -php84-ftp 8.4.10-r0 apk -php84-gd 8.4.10-r0 apk -php84-gmp 8.4.10-r0 apk -php84-iconv 8.4.10-r0 apk -php84-intl 8.4.10-r0 apk -php84-ldap 8.4.10-r0 apk -php84-mbstring 8.4.10-r0 apk -php84-mysqlnd 8.4.10-r0 apk -php84-opcache 8.4.10-r0 apk -php84-openssl 8.4.10-r0 apk -php84-pcntl 8.4.10-r0 apk -php84-pdo 8.4.10-r0 apk -php84-pdo_mysql 8.4.10-r0 apk -php84-pdo_pgsql 8.4.10-r0 apk -php84-pdo_sqlite 8.4.10-r0 apk -php84-pecl-apcu 5.1.24-r1 apk -php84-pecl-igbinary 3.2.16-r1 apk -php84-pecl-imagick 3.8.0-r0 apk -php84-pecl-imap 1.0.3-r0 apk -php84-pecl-memcached 3.3.0-r0 apk -php84-pecl-msgpack 3.0.0-r0 apk -php84-pecl-redis 6.2.0-r0 apk -php84-pecl-smbclient 1.2.0_pre-r0 apk -php84-pgsql 8.4.10-r0 apk -php84-phar 8.4.10-r0 apk -php84-posix 8.4.10-r0 apk -php84-session 8.4.10-r0 apk -php84-simplexml 8.4.10-r0 apk -php84-sockets 8.4.10-r0 apk -php84-sodium 8.4.10-r0 apk -php84-sqlite3 8.4.10-r0 apk -php84-sysvsem 8.4.10-r0 apk -php84-xml 8.4.10-r0 apk -php84-xmlreader 8.4.10-r0 apk -php84-xmlwriter 8.4.10-r0 apk -php84-zip 8.4.10-r0 apk -phpdocumentor/reflection-common 2.2.0 php-composer -phpdocumentor/reflection-docblock 5.4.1 php-composer -phpdocumentor/type-resolver 1.8.2 php-composer -phpseclib/phpseclib 2.0.48 php-composer -phpstan/phpdoc-parser 1.30.1 php-composer -pimple/pimple v3.5.0 php-composer -pixman 0.46.4-r0 apk -pkgconf 2.4.3-r0 apk -popt 1.19-r4 apk -ppv-lite86 0.2.17 rust-crate -privacy 3.0.0 npm -proc-macro2 1.0.76 rust-crate -procps-ng 4.0.4-r3 apk -profiling 1.0.13 rust-crate -profiling-procmacros 1.0.13 rust-crate -psr/cache 3.0.0 php-composer -psr/clock 1.0.0 php-composer (+1 duplicate) -psr/container 2.0.2 php-composer (+1 duplicate) -psr/event-dispatcher 1.0.0 php-composer (+1 duplicate) -psr/http-client 1.0.3 php-composer -psr/http-factory 1.1.0 php-composer -psr/http-message 1.1 php-composer -psr/log 1.1.4 php-composer -psr/log 3.0.2 php-composer (+1 duplicate) -punic/punic 3.8.1 php-composer -quote 1.0.35 rust-crate -radium 0.7.0 rust-crate -ralouphie/getallheaders 3.0.3 php-composer -rand 0.8.5 rust-crate -rand_chacha 0.3.1 rust-crate -rand_core 0.6.4 rust-crate -rav1e 0.7.1 rust-crate -rav1e-libs 0.7.1-r0 apk -rayon 1.8.0 rust-crate -rayon-core 1.12.0 rust-crate -readline 8.2.13-r1 apk -recommendations 4.0.0 npm -related_resources 2.0.0 npm -rsync 3.4.1-r0 apk -rubix/ml 2.3.2 php-composer -rubix/tensor 3.0.5 php-composer -rullzer/easytotp v0.1.4 php-composer -runuser 2.41-r9 apk -rustix 0.38.28 rust-crate -sabre/dav 4.7.0 php-composer -sabre/event 5.1.7 php-composer -sabre/http 5.1.12 php-composer -sabre/uri 2.3.4 php-composer -sabre/vobject 4.5.6 php-composer -sabre/xml 2.2.11 php-composer -samba-client 4.21.4-r4 apk -samba-client-libs 4.21.4-r4 apk -samba-common 4.21.4-r4 apk -samba-libs 4.21.4-r4 apk -samba-util-libs 4.21.4-r4 apk -scan_fmt 0.2.6 rust-crate -scanelf 1.3.8-r1 apk -scssphp/scssphp v1.12.1 php-composer -sdl2-compat 2.32.56-r0 apk -sdl3 3.2.16-r0 apk -sebastian/diff 5.1.1 php-composer -serd-libs 0.32.4-r0 apk -setarch 2.41-r9 apk -setpriv 2.41-r9 apk -sfdisk 2.41-r9 apk -shaderc 2024.4-r0 apk -shadow 4.17.3-r0 apk -shared-mime-info 2.4-r6 apk -signal-hook 0.3.17 rust-crate -signal-hook-registry 1.4.1 rust-crate -simd_helpers 0.1.0 rust-crate -skalibs-libs 2.14.4.0-r0 apk -sord-libs 0.16.18-r0 apk -soxr 0.1.3-r7 apk -spatie/array-to-xml 3.3.0 php-composer -speexdsp 1.2.1-r2 apk -spirv-tools 1.4.313.0-r0 apk -spomky-labs/cbor-php 3.0.4 php-composer -spomky-labs/pki-framework 1.2.1 php-composer -sqlite-libs 3.49.2-r1 apk -sratom 0.6.18-r0 apk -ssl_client 1.37.0-r18 apk -stecman/symfony-console-completion v0.13.0 php-composer -sudo 1.9.17_p2-r0 apk -support 3.0.0 npm -symfony/console v6.4.11 php-composer -symfony/console v6.4.17 php-composer -symfony/css-selector v6.4.3 php-composer -symfony/deprecation-contracts v3.5.0 php-composer -symfony/deprecation-contracts v3.5.1 php-composer -symfony/dom-crawler v6.4.4 php-composer -symfony/event-dispatcher v6.4.13 php-composer -symfony/event-dispatcher-contracts v3.5.1 php-composer -symfony/filesystem v6.4.9 php-composer -symfony/http-foundation v6.4.18 php-composer -symfony/mailer v6.4.18 php-composer -symfony/mime v6.4.18 php-composer -symfony/polyfill-ctype v1.31.0 php-composer (+1 duplicate) -symfony/polyfill-iconv v1.31.0 php-composer -symfony/polyfill-intl-grapheme v1.31.0 php-composer (+2 duplicates) -symfony/polyfill-intl-idn v1.31.0 php-composer -symfony/polyfill-intl-normalizer v1.31.0 php-composer (+2 duplicates) -symfony/polyfill-mbstring v1.31.0 php-composer (+2 duplicates) -symfony/polyfill-php72 v1.31.0 php-composer -symfony/polyfill-php80 v1.31.0 php-composer (+1 duplicate) -symfony/polyfill-php82 v1.31.0 php-composer -symfony/polyfill-php83 v1.31.0 php-composer (+1 duplicate) -symfony/polyfill-uuid v1.29.0 php-composer -symfony/process v6.4.15 php-composer -symfony/routing v6.4.18 php-composer -symfony/service-contracts v3.5.0 php-composer -symfony/service-contracts v3.5.1 php-composer -symfony/string v6.4.11 php-composer -symfony/string v6.4.15 php-composer -symfony/translation v6.4.13 php-composer -symfony/translation-contracts v3.5.1 php-composer -symfony/uid v6.4.3 php-composer -syn 2.0.48 rust-crate -talloc 2.4.2-r1 apk -tap 1.0.1 rust-crate -tdb-libs 1.4.12-r0 apk -terminal_size 0.3.0 rust-crate -tevent 0.16.1-r0 apk -text 5.0.0 npm -thiserror 1.0.56 rust-crate -thiserror-impl 1.0.56 rust-crate -tiff 4.7.0-r0 apk -tinyvec 1.9.0 rust-crate -twofactor_nextcloud_notification 5.0.0 npm -twofactor_totp 13.0.0-dev.0 npm -tzdata 2025b-r0 apk -umount 2.41-r9 apk -unicode-ident 1.0.12 rust-crate -unicode-width 0.1.11 rust-crate -utf8parse 0.2.1 rust-crate -util-linux 2.41-r9 apk -util-linux-misc 2.41-r9 apk -utmps-libs 0.1.3.1-r0 apk -uuidgen 2.41-r9 apk -v4l-utils-libs 1.28.1-r1 apk -v_frame 0.3.7 rust-crate -vidstab 1.1.1-r0 apk -viewer 4.0.0 npm -vimeo/psalm 5.26.1 php-composer -voku/portable-ascii 2.0.3 php-composer -voku/portable-utf8 6.0.13 php-composer -vulkan-loader 1.4.313.0-r0 apk -wamania/php-stemmer v3.0.1 php-composer -wapmorgan/mp3info 0.1.0 php-composer -wayland-libs-client 1.23.1-r3 apk -web-auth/cose-lib 4.3.0 php-composer -web-auth/webauthn-lib 4.9.1 php-composer -webmozart/assert 1.11.0 php-composer -wipefs 2.41-r9 apk -wyz 0.5.1 rust-crate -x264-libs 0.164.3108-r0 apk -x265-libs 3.6-r0 apk -xvidcore 1.3.7-r2 apk -xz-libs 5.8.1-r0 apk -y4m 0.8.0 rust-crate -zimg 3.0.5-r3 apk -zix-libs 0.6.2-r0 apk -zlib 1.3.1-r2 apk -zstd-libs 1.5.7-r0 apk +NAME VERSION TYPE +Process Wrapper 0.0.0.0 binary (+1 duplicate) +acl-libs 2.3.2-r1 apk +activity 8.0.0-dev.0 npm +agetty 2.42.3-r1 apk +aligned 0.4.2 rust-crate +aligned-vec 0.6.4 rust-crate +alpine-baselayout 3.7.2-r1 apk +alpine-baselayout-data 3.7.2-r1 apk +alpine-keys 2.6-r0 apk +alpine-release 3.24.4-r0 apk +alsa-lib 1.2.15.3-r0 apk +amphp/amp v2.6.5 php-composer +amphp/byte-stream v1.8.2 php-composer +amphp/parallel v1.4.4 php-composer +amphp/parser v1.1.1 php-composer +amphp/process v1.1.9 php-composer +amphp/serialization v1.0.0 php-composer +amphp/sync v1.4.2 php-composer +andrewdalpino/okbloomer 1.0.0 php-composer +anstream 0.6.19 rust-crate +anstyle 1.0.11 rust-crate +anstyle-parse 0.2.7 rust-crate +anstyle-query 1.1.3 rust-crate +anyhow 1.0.98 rust-crate (+1 duplicate) +aom-libs 3.14.1-r0 apk +apache2-utils 2.4.71-r0 apk +apk-tools 3.0.9-r0 apk +apr 1.7.6-r0 apk +apr-util 1.6.4-r0 apk +arg_enum_proc_macro 0.3.4 rust-crate +argon2-libs 20190702-r5 apk +arrayvec 0.7.6 rust-crate +as-slice 0.2.1 rust-crate +av-metrics 0.9.1 rust-crate +av-scenechange 0.14.1 rust-crate +av1-grain 0.2.4 rust-crate +avahi-libs 0.9_rc4-r0 apk +aws/aws-crt-php v1.2.7 php-composer +aws/aws-sdk-php 3.398.3 php-composer +bamarni/composer-bin-plugin 1.9.1 php-composer (+1 duplicate) +bantu/ini-get-wrapper v1.0.1 php-composer +bash 5.3.9-r1 apk +bitflags 2.9.1 rust-crate +bitstream-io 2.6.0 rust-crate +bitstream-io 4.2.0 rust-crate +bitvec 1.0.1 rust-crate +bitvec_helpers 3.1.6 rust-crate +blkid 2.42.3-r1 apk +brick/math 0.12.1 php-composer +brick/math 0.17.2 php-composer +brotli-libs 1.2.1-r0 apk +bubblewrap 0.12.0-r0 apk +busybox 1.37.0-r31 apk +busybox-binsh 1.37.0-r31 apk +c-ares 1.34.9-r0 apk +c-client 2007f-r16 apk +ca-certificates 20261020-r0 apk +ca-certificates-bundle 20261020-r0 apk +cairo 1.18.4-r1 apk +catatonit 0.2.1-r0 apk +cfdisk 2.42.3-r1 apk +cfg-if 1.0.1 rust-crate +christian-riesen/base32 1.6.0 php-composer +cjson 1.7.19-r1 apk +clap 4.5.40 rust-crate +clap_builder 4.5.40 rust-crate +clap_complete 4.5.54 rust-crate +clap_lex 0.7.5 rust-crate +colorchoice 1.0.4 rust-crate +composer 2.11.3 binary +console 0.15.11 rust-crate +core2 0.4.0 rust-crate +coreutils 9.11-r0 apk +coreutils-env 9.11-r0 apk +coreutils-fmt 9.11-r0 apk +coreutils-sha512sum 9.11-r0 apk +crc 3.3.0 rust-crate +crc-catalog 2.4.0 rust-crate +crossbeam 0.8.4 rust-crate +crossbeam-channel 0.5.15 rust-crate +crossbeam-deque 0.8.6 rust-crate +crossbeam-epoch 0.9.18 rust-crate +crossbeam-queue 0.3.12 rust-crate +crossbeam-utils 0.8.21 rust-crate +cups-libs 2.4.19-r1 apk +curl 8.23.0-r0 apk +cweagans/composer-configurable-plugin 2.0.0 php-composer +cweagans/composer-patches 2.0.0 php-composer +dbus-libs 1.16.2-r2 apk +deepdiver/zipstreamer v3.0.1 php-composer +deepdiver1975/tarstreamer v2.1.0 php-composer +dmesg 2.42.3-r1 apk +doctrine/dbal 3.10.4 php-composer +doctrine/deprecations 1.1.6 php-composer +doctrine/event-manager 2.0.1 php-composer +doctrine/lexer 3.0.3 php-composer +dolby_vision 3.3.2 rust-crate +egulias/email-validator 4.0.4 php-composer +either 1.15.0 rust-crate +equator 0.4.2 rust-crate +errno 0.3.12 rust-crate +fern 0.7.1 rust-crate +ffmpeg 8.1.3-r0 apk +ffmpeg-libavcodec 8.1.3-r0 apk +ffmpeg-libavdevice 8.1.3-r0 apk +ffmpeg-libavfilter 8.1.3-r0 apk +ffmpeg-libavformat 8.1.3-r0 apk +ffmpeg-libavutil 8.1.3-r0 apk +ffmpeg-libswresample 8.1.3-r0 apk +ffmpeg-libswscale 8.1.3-r0 apk +fftw-double-libs 3.3.11-r0 apk +files_downloadlimit 5.3.0-dev.0 npm +files_pdfviewer 8.0.0-dev.0 npm +findmnt 2.42.3-r1 apk +findutils 4.10.0-r1 apk +firebase/php-jwt v7.0.5 php-composer +firstrunwizard 8.0.0-dev.0 npm +flock 2.42.3-r1 apk +fontconfig 2.17.1-r1 apk +freetype 2.14.3-r0 apk +fribidi 1.0.16-r3 apk +fstrim 2.42.3-r1 apk +funty 2.0.0 rust-crate +fusonic/opengraph v3.1.0 php-composer +gapple/structured-fields v2.3.3 php-composer +gdbm 1.26-r0 apk +gdk-pixbuf 2.44.7-r1 apk +getrandom 0.3.3 rust-crate +ghostscript 10.08.0-r0 apk +giggsey/libphonenumber-for-php-lite 9.0.36 php-composer +git 2.54.1-r0 apk +git-init-template 2.54.1-r0 apk +glib 2.88.4-r0 apk +glslang-libs 1.4.341.0-r0 apk +glycin-image-rs 2.1.5-r0 apk +glycin-svg 2.1.5-r0 apk +gmp 6.3.0-r4 apk +gnu-libiconv 1.18-r0 apk +gnu-libiconv-libs 1.18-r0 apk +gnutls 3.8.14-r0 apk +graphite2 1.3.14-r6 apk +guzzlehttp/guzzle 7.15.2 php-composer +guzzlehttp/promises 2.5.1 php-composer +guzzlehttp/psr7 2.13.0 php-composer +guzzlehttp/psr7 2.13.2 php-composer +guzzlehttp/uri-template v1.0.4 php-composer +harfbuzz 13.2.1-r0 apk +hexdump 2.42.3-r1 apk +hexogen/kdtree v0.2.6 php-composer +hwdata-pci 0.408-r0 apk +icewind/searchdav v3.2.0 php-composer +icewind/smb 3.8.1 php-composer +icewind/streams v0.7.8 php-composer +icu-data-en 78.1-r0 apk +icu-libs 78.1-r0 apk +imagemagick 7.1.2.35-r0 apk +imagemagick-heic 7.1.2.35-r0 apk +imagemagick-jp2 7.1.2.35-r0 apk +imagemagick-jpeg 7.1.2.35-r0 apk +imagemagick-jxl 7.1.2.35-r0 apk +imagemagick-libs 7.1.2.35-r0 apk +imagemagick-pango 7.1.2.35-r0 apk +imagemagick-pdf 7.1.2.35-r0 apk +imagemagick-svg 7.1.2.35-r0 apk +imagemagick-tiff 7.1.2.35-r0 apk +imagemagick-webp 7.1.2.35-r0 apk +interpolate_name 0.2.4 rust-crate +is_terminal_polyfill 1.70.1 rust-crate +itertools 0.10.5 rust-crate +itertools 0.14.0 rust-crate +ivf 0.1.4 rust-crate +jansson 2.15.0-r0 apk +jbig2dec 0.20-r0 apk +joomla/string 3.0.4 php-composer +jq 1.8.2-r0 apk +json-c 0.18-r1 apk +justinrainbow/json-schema 6.10.0 php-composer +kornrunner/blurhash v1.2.2 php-composer +lab 0.11.0 rust-crate +lame-libs 3.100-r5 apk +laravel/serializable-closure v2.0.15 php-composer +lcms2 2.19-r0 apk +lcobucci/clock 3.5.0 php-composer +ldb 4.23.8-r0 apk +libSvtAv1Enc 4.1.0-r0 apk +libapk 3.0.9-r0 apk +libarchive 3.8.11-r0 apk +libass 0.17.4-r1 apk +libasyncns 0.8-r5 apk +libattr 2.5.2-r2 apk +libauth-samba 4.23.8-r0 apk +libavif 1.4.1-r0 apk +libblkid 2.42.3-r1 apk +libbluray 1.4.0-r0 apk +libbsd 0.12.2-r0 apk +libbz2 1.0.8-r6 apk +libc 0.2.172 rust-crate (+1 duplicate) +libcap-ng 0.8.5-r2 apk +libcap2 2.78-r0 apk +libcrypto3 3.5.10-r0 apk +libcurl 8.23.0-r0 apk +libdav1d 1.5.3-r0 apk +libde265 1.1.3-r0 apk +libdovi 3.3.2-r0 apk +libdrm 2.4.134-r0 apk +libdvdcss 1.4.3-r0 apk +libdvdnav 6.1.1-r1 apk +libdvdread 6.1.3-r2 apk +libeconf 0.8.3-r0 apk +libedit 20260508.3.1-r1 apk +libevent 2.1.13-r0 apk +libexpat 2.11.0-r0 apk +libfdisk 2.42.3-r1 apk +libffi 3.8.2-r0 apk +libflac 1.4.3-r2 apk +libformw 6.6_p20260516-r0 apk +libgcc 15.2.0-r5 apk +libglycin 2.1.5-r0 apk +libgomp 15.2.0-r5 apk +libheif 1.23.7-r0 apk +libheif-aom 1.23.7-r0 apk +libheif-dav1d 1.23.7-r0 apk +libheif-ffmpeg 1.23.7-r0 apk +libheif-jpeg 1.23.7-r0 apk +libheif-libde265 1.23.7-r0 apk +libheif-openjpeg 1.23.7-r0 apk +libheif-rav1e 1.23.7-r0 apk +libheif-svtenc 1.23.7-r0 apk +libheif-x264 1.23.7-r0 apk +libheif-x265 1.23.7-r0 apk +libhwy 1.3.0-r0 apk +libice 1.1.2-r0 apk +libidn2 2.3.8-r0 apk +libintl 1.0-r0 apk +libjpeg-turbo 3.1.3-r0 apk +libjxl 0.11.2-r1 apk +libldap 2.6.15-r0 apk +libltdl 2.6.0-r1 apk +libmd 1.2.0-r0 apk +libmemcached-libs 1.1.4-r1 apk +libmount 2.42.3-r1 apk +libncursesw 6.6_p20260516-r0 apk +libogg 1.3.6-r0 apk +libopenmpt 0.8.10-r0 apk +libpanelw 6.6_p20260516-r0 apk +libpciaccess 0.19-r0 apk +libplacebo 7.360.1-r0 apk +libpng 1.6.59-r0 apk +libpq 18.7-r0 apk +libproc2 4.0.6-r0 apk +libpsl 0.21.5-r3 apk +libpulse 17.0-r7 apk +libraqm 0.10.2-r0 apk +librist 0.2.15-r0 apk +librsvg 2.62.3-r0 apk +libsasl 2.1.28-r9 apk +libseccomp 2.6.1-r0 apk +libsharpyuv 1.6.0-r0 apk +libsm 1.2.6-r0 apk +libsmartcols 2.42.3-r1 apk +libsmbclient 4.23.8-r0 apk +libsndfile 1.2.2-r2 apk +libsodium 1.0.22-r0 apk +libsrt 1.5.3-r1 apk +libssh 0.12.2-r0 apk +libssl3 3.5.10-r0 apk +libstdc++ 15.2.0-r5 apk +libtasn1 4.21.0-r0 apk +libtheora 1.2.0-r1 apk +libudfread 1.2.0-r1 apk +libunibreak 6.1-r0 apk +libunistring 1.4.2-r0 apk +libuuid 2.42.3-r1 apk +libva 2.23.0-r0 apk +libvdpau 1.5-r4 apk +libvorbis 1.3.7-r2 apk +libvpl 2.15.0-r1 apk +libvpx 1.15.2-r1 apk +libwbclient 4.23.8-r0 apk +libwebp 1.6.0-r0 apk +libwebpdemux 1.6.0-r0 apk +libwebpmux 1.6.0-r0 apk +libx11 1.8.14-r0 apk +libxau 1.0.12-r0 apk +libxcb 1.17.0-r2 apk +libxdmcp 1.1.5-r1 apk +libxext 1.3.7-r0 apk +libxfixes 6.0.2-r0 apk +libxft 2.3.9-r0 apk +libxml2 2.13.9-r5 apk +libxpm 3.5.20-r0 apk +libxrender 0.9.13-r0 apk +libxt 1.3.1-r0 apk +libxxhash 0.8.3-r1 apk +libyuv 0.0.1928-r0 apk +libzip 1.11.4-r2 apk +libzmq 4.3.5-r2 apk +lilv-libs 0.24.26-r1 apk +linux-pam 1.7.1-r2 apk +linux-raw-sys 0.9.4 rust-crate +lmdb 0.9.35-r0 apk +log 0.4.27 rust-crate +logger 2.42.3-r1 apk +logreader 8.0.0-dev.0 npm +logrotate 3.22.0-r0 apk +losetup 2.42.3-r1 apk +lsblk 2.42.3-r1 apk +lscpu 2.42.3-r1 apk +lz4-libs 1.10.0-r1 apk +marc-mabe/php-enum v4.7.1 php-composer +masterminds/html5 2.10.0 php-composer +maybe-rayon 0.1.1 rust-crate +mbedtls3 3.6.8-r0 apk +mcookie 2.42.3-r1 apk +memchr 2.7.5 rust-crate +mexitek/phpcolors v1.0.4 php-composer +microsoft/azure-storage-blob 1.5.4 php-composer +microsoft/azure-storage-common 1.5.2 php-composer +minimal-lexical 0.2.1 rust-crate +minishlink/web-push v11.0.0 php-composer +mlocati/ip-lib 1.22.0 php-composer +mount 2.42.3-r1 apk +mpg123-libs 1.33.5-r0 apk +mtdowling/jmespath.php 2.9.1 php-composer +musl 1.2.6-r3 apk +musl-utils 1.2.6-r3 apk +nano 9.3-r0 apk +ncurses-terminfo-base 6.6_p20260516-r0 apk +nelexa/buffer 1.3.0 php-composer +netcat-openbsd 1.234.1-r0 apk +nettle 3.10.2-r0 apk +new_debug_unreachable 1.0.6 rust-crate +nextcloud 1.0.0 npm +nextcloud/lognormalizer v3.0.1 php-composer +nghttp2-libs 1.70.0-r0 apk +nginx 1.30.8-r1 apk +nom 7.1.3 rust-crate +nom 8.0.0 rust-crate +noop_proc_macro 0.3.0 rust-crate +notifications 8.0.0-dev.0 npm +num-bigint 0.4.6 rust-crate +num-derive 0.4.2 rust-crate +num-integer 0.1.46 rust-crate +num-rational 0.4.2 rust-crate +num-traits 0.2.19 rust-crate +numactl 2.0.19-r0 apk +office 1.1.0-dev.0 npm +once_cell 1.21.3 rust-crate +oniguruma 6.9.10-r0 apk +openjpeg 2.5.4-r2 apk +openssl 3.5.10-r0 apk +opus 1.6.1-r0 apk +orc 0.4.41-r0 apk +p11-kit 0.26.2-r0 apk +pango 1.57.1-r0 apk +paragonie/constant_time_encoding v3.1.3 php-composer +partx 2.42.3-r1 apk +password_policy 7.0.0-dev.0 npm +paste 1.0.15 rust-crate +pastey 0.1.0 rust-crate +pcre2 10.49-r0 apk +pear/archive_tar 1.6.0 php-composer +pear/console_getopt v1.4.3 php-composer +pear/pear-core-minimal v1.10.18 php-composer +pear/pear_exception v1.0.2 php-composer +photos 8.0.0-dev.0 npm +php-http/discovery 1.20.0 php-composer +php-http/guzzle7-adapter 1.1.0 php-composer +php-http/httplug 2.4.1 php-composer (+1 duplicate) +php-http/promise 1.3.1 php-composer (+1 duplicate) +php-opencloud/openstack v3.17.0 php-composer +php85 8.5.13-r0 apk +php85-bcmath 8.5.13-r0 apk +php85-bz2 8.5.13-r0 apk +php85-common 8.5.13-r0 apk +php85-ctype 8.5.13-r0 apk +php85-curl 8.5.13-r0 apk +php85-dom 8.5.13-r0 apk +php85-exif 8.5.13-r0 apk +php85-fileinfo 8.5.13-r0 apk +php85-fpm 8.5.13-r0 apk +php85-ftp 8.5.13-r0 apk +php85-gd 8.5.13-r0 apk +php85-gmp 8.5.13-r0 apk +php85-iconv 8.5.13-r0 apk +php85-intl 8.5.13-r0 apk +php85-ldap 8.5.13-r0 apk +php85-mbstring 8.5.13-r0 apk +php85-mysqlnd 8.5.13-r0 apk +php85-openssl 8.5.13-r0 apk +php85-pcntl 8.5.13-r0 apk +php85-pdo 8.5.13-r0 apk +php85-pdo_mysql 8.5.13-r0 apk +php85-pdo_pgsql 8.5.13-r0 apk +php85-pdo_sqlite 8.5.13-r0 apk +php85-pecl-apcu 5.1.28-r0 apk +php85-pecl-igbinary 3.2.17_rc1-r0 apk +php85-pecl-imagick 3.8.1-r0 apk +php85-pecl-imap 1.0.3-r0 apk +php85-pecl-memcached 3.4.0-r0 apk +php85-pecl-msgpack 3.0.1-r0 apk +php85-pecl-redis 6.3.0-r0 apk +php85-pecl-smbclient 1.2.0_pre-r0 apk +php85-pgsql 8.5.13-r0 apk +php85-phar 8.5.13-r0 apk +php85-posix 8.5.13-r0 apk +php85-session 8.5.13-r0 apk +php85-simplexml 8.5.13-r0 apk +php85-sockets 8.5.13-r0 apk +php85-sodium 8.5.13-r0 apk +php85-sqlite3 8.5.13-r0 apk +php85-sysvsem 8.5.13-r0 apk +php85-xml 8.5.13-r0 apk +php85-xmlreader 8.5.13-r0 apk +php85-xmlwriter 8.5.13-r0 apk +php85-zip 8.5.13-r0 apk +phpseclib/phpseclib 3.0.57 php-composer +pimple/pimple v3.6.2 php-composer +pixman 0.46.4-r0 apk +pkgconf 2.5.1-r0 apk +popt 1.19-r4 apk +ppv-lite86 0.2.21 rust-crate +predis/predis v3.5.1 php-composer +privacy 7.0.0-dev.0 npm +proc-macro2 1.0.95 rust-crate +procps-ng 4.0.6-r0 apk +profiling 1.0.16 rust-crate +psr/cache 3.0.0 php-composer +psr/clock 1.0.0 php-composer (+1 duplicate) +psr/container 2.0.2 php-composer +psr/event-dispatcher 1.0.0 php-composer +psr/http-client 1.0.3 php-composer (+1 duplicate) +psr/http-factory 1.1.0 php-composer (+1 duplicate) +psr/http-message 2.0 php-composer (+1 duplicate) +psr/log 3.0.2 php-composer (+2 duplicates) +punic/punic 3.8.1 php-composer +quote 1.0.40 rust-crate +radium 0.7.0 rust-crate +ralouphie/getallheaders 3.0.3 php-composer (+1 duplicate) +rand 0.9.1 rust-crate +rand_chacha 0.9.0 rust-crate +rand_core 0.9.3 rust-crate +rav1e 0.8.1 rust-crate +rav1e-libs 0.8.1-r0 apk +rayon 1.10.0 rust-crate +rayon-core 1.12.1 rust-crate +readline 8.3.3-r1 apk +recommendations 8.0.0-dev.0 npm +rsync 3.5.2-r1 apk +rubix/ml 2.5.3 php-composer +rubix/tensor 3.0.5 php-composer +rullzer/easytotp v0.1.4 php-composer +runuser 2.42.3-r1 apk +rustix 1.0.7 rust-crate +sabre/dav 4.7.0 php-composer +sabre/event 5.1.7 php-composer +sabre/http 5.1.12 php-composer +sabre/uri 2.3.4 php-composer +sabre/vobject 4.5.6 php-composer +sabre/xml 2.2.11 php-composer +samba-client 4.23.8-r0 apk +samba-client-libs 4.23.8-r0 apk +samba-common 4.23.8-r0 apk +samba-libs 4.23.8-r0 apk +samba-util-libs 4.23.8-r0 apk +scan_fmt 0.2.6 rust-crate +scanelf 1.3.9-r1 apk +serd-libs 0.32.8-r0 apk +serverinfo 6.0.0 npm +setarch 2.42.3-r1 apk +setpriv 2.42.3-r1 apk +sfdisk 2.42.3-r1 apk +shaderc 2026.1-r0 apk +shadow 4.20.4-r0 apk +shared-mime-info 2.4-r7 apk +signal-hook 0.3.18 rust-crate +signal-hook-registry 1.4.5 rust-crate +simd_helpers 0.1.0 rust-crate +skalibs-libs 2.15.0.0-r0 apk +sord-libs 0.16.22-r0 apk +soxr 0.1.3-r7 apk +speexdsp 1.2.1-r2 apk +spirv-tools 1.4.341.0-r0 apk +spomky-labs/base64url v2.0.4 php-composer +spomky-labs/cbor-php 3.0.4 php-composer +spomky-labs/pki-framework 1.2.1 php-composer +spomky-labs/pki-framework 1.6.0 php-composer +sqlite-libs 3.53.4-r0 apk +sratom 0.6.20-r0 apk +ssl_client 1.37.0-r31 apk +stable_deref_trait 1.2.0 rust-crate +stecman/symfony-console-completion v0.15.0 php-composer +sudo 1.9.17_p2-r2 apk +support 7.0.0-dev.0 npm +symfony/console v7.4.21 php-composer +symfony/css-selector v6.4.24 php-composer +symfony/deprecation-contracts v3.6.0 php-composer +symfony/deprecation-contracts v3.7.1 php-composer (+1 duplicate) +symfony/dom-crawler v7.4.12 php-composer +symfony/event-dispatcher v7.4.17 php-composer +symfony/event-dispatcher-contracts v3.7.1 php-composer +symfony/filesystem v7.4.8 php-composer +symfony/http-foundation v7.4.21 php-composer +symfony/mailer v7.4.22 php-composer +symfony/mime v7.4.22 php-composer +symfony/polyfill-intl-grapheme v1.43.3 php-composer +symfony/polyfill-intl-idn v1.43.0 php-composer +symfony/polyfill-intl-normalizer v1.43.0 php-composer +symfony/polyfill-mbstring v1.33.0 php-composer +symfony/polyfill-php80 v1.33.0 php-composer +symfony/polyfill-php80 v1.43.0 php-composer +symfony/polyfill-php82 v1.33.0 php-composer +symfony/polyfill-php83 v1.33.0 php-composer +symfony/polyfill-php83 v1.41.0 php-composer +symfony/polyfill-php84 v1.38.1 php-composer (+1 duplicate) +symfony/polyfill-php85 v1.41.0 php-composer +symfony/polyfill-php86 v1.41.0 php-composer +symfony/polyfill-uuid v1.29.0 php-composer +symfony/process v6.4.49 php-composer +symfony/routing v6.4.47 php-composer +symfony/service-contracts v3.7.3 php-composer +symfony/string v7.4.22 php-composer +symfony/translation v6.4.49 php-composer +symfony/translation-contracts v3.7.1 php-composer +symfony/uid v6.4.32 php-composer +syn 2.0.102 rust-crate +talloc 2.4.4-r1 apk +tap 1.0.1 rust-crate +tdb-libs 1.4.15-r1 apk +terminal_size 0.4.2 rust-crate +tevent 0.17.1-r1 apk +text 9.0.0-dev.0 npm +thiserror 1.0.69 rust-crate +thiserror 2.0.12 rust-crate +tiff 4.7.2-r0 apk +tinyvec 1.9.0 rust-crate +tzdata 2026f-r0 apk +umount 2.42.3-r1 apk +unicode-ident 1.0.18 rust-crate +unicode-width 0.2.1 rust-crate +utf8parse 0.2.2 rust-crate +util-linux 2.42.3-r1 apk +util-linux-misc 2.42.3-r1 apk +utmps-libs 0.1.3.3-r0 apk +uuidgen 2.42.3-r1 apk +v4l-utils-libs 1.32.0-r1 apk +v_frame 0.3.9 rust-crate +vidstab 1.1.1-r0 apk +viewer 8.0.0-dev.0 npm +vulkan-loader 1.4.347-r0 apk +wamania/php-stemmer v4.0.0 php-composer +wapmorgan/mp3info 0.1.1 php-composer +wayland-libs-client 1.25.0-r0 apk +web-auth/cose-lib 4.3.0 php-composer +web-auth/webauthn-lib 4.9.3 php-composer +web-token/jwt-library 4.1.7 php-composer +wipefs 2.42.3-r1 apk +woltlab/webp-exif v0.1.5 php-composer +wyz 0.5.1 rust-crate +x264-libs 0.164.3108-r1 apk +x265-libs 4.1-r0 apk +xvidcore 1.3.7-r2 apk +xz-libs 5.8.4-r0 apk +y4m 0.8.0 rust-crate +zerocopy 0.8.25 rust-crate +zimg 3.0.6-r0 apk +zix-libs 0.8.0-r0 apk +zlib 1.4-r0 apk +zstd-libs 1.6.0-r1 apk diff --git a/readme-vars.yml b/readme-vars.yml index 8139ab34..635848bd 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -140,11 +140,12 @@ init_diagram: | svc-php-fpm -> legacy-services } Base Images: { - "baseimage-alpine-nginx:3.22" <- "baseimage-alpine:3.22" + "baseimage-alpine-nginx:3.24" <- "baseimage-alpine:3.24" } "nextcloud:latest" <- Base Images # changelog changelogs: + - {date: "14.10.26:", desc: "Rebase to Alpine 3.24 with php 8.5. Tweak opcache settings according to upstream docs. Import upstream release notes in Github releases."} - {date: "10.07.25:", desc: "Rebase to Alpine 3.22."} - {date: "12.02.25:", desc: "Rebase to Alpine 3.21."} - {date: "09.01.25:", desc: "Fix uploading large files. Existing users should update their nginx confs."} diff --git a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run index ffe42494..bba0b8d1 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run @@ -10,7 +10,7 @@ mkdir -p \ /data # migrate legacy install (copy inside container) -if [ -f /config/www/nextcloud/version.php ]; then +if [[ -f /config/www/nextcloud/version.php ]]; then echo "Migrating legacy install (this can take a while) ...)" rsync -rlD --remove-source-files --exclude-from=/app/upgrade.exclude /config/www/nextcloud/ /app/www/public/ rm -rf /config/www/nextcloud/updater/ @@ -26,7 +26,7 @@ fi # symlink config folders for dir in apps config themes; do - if [ "$(readlink /app/www/public/${dir})" != "/config/www/nextcloud/${dir}" ]; then + if [[ "$(readlink /app/www/public/${dir})" != "/config/www/nextcloud/${dir}" ]]; then rm -rf "/app/www/public/${dir}" ln -s "/config/www/nextcloud/${dir}" "/app/www/public/${dir}" lsiown abc:abc "/config/www/nextcloud/${dir}" "/app/www/public/${dir}" @@ -34,9 +34,9 @@ for dir in apps config themes; do done # get versions -image_version=$(php -r "require '/app/www/src/version.php'; echo implode('.', \$OC_Version);" 2>/dev/null) -installed_version=$(php -r "require '/config/www/nextcloud/config/config.php'; echo \$CONFIG['version'];" 2>/dev/null) -if [ "${installed_version}" = "" ]; then +image_version=$(php -r "require '/app/www/src/version.php'; echo implode('.', \$OC_Version);" 2>/dev/null | xargs) +installed_version=$(php -r "require '/config/www/nextcloud/config/config.php'; echo \$CONFIG['version'];" 2>/dev/null | xargs) +if [[ "${installed_version}" = "" ]]; then installed_version="0.0.0.0" fi image_major="${image_version%%.*}" @@ -54,23 +54,23 @@ if vergt "${installed_version}" "${image_version}"; then sleep infinity fi -if [ "${installed_version}" != "0.0.0.0" ] && vergt "${image_major}" "${max_upgrade}"; then +if [[ "${installed_version}" != "0.0.0.0" ]] && vergt "${image_major}" "${max_upgrade}"; then echo "Can't start Nextcloud because the version of the data (${installed_version}) is more than one major version behind the docker image version (${image_version}) and upgrading more than one major version is not supported. Please run an image tagged for the major version ${max_upgrade} first." sleep infinity fi -if [ "${installed_version}" = "0.0.0.0" ] || [ ! -f /app/www/public/version.php ] || [ -z "$(ls -A /config/www/nextcloud/apps 2>/dev/null)" ]; then +if [[ "${installed_version}" = "0.0.0.0" ]] || [[ ! -f /app/www/public/version.php ]] || [[ -z "$(ls -A /config/www/nextcloud/apps 2>/dev/null)" ]]; then touch /tmp/needs_install fi -if [ "${installed_version}" != "0.0.0.0" ] && vergt "${image_version}" "${installed_version}"; then +if [[ "${installed_version}" != "0.0.0.0" ]] && vergt "${image_version}" "${installed_version}"; then touch /tmp/needs_upgrade fi # initialize nextcloud -if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_install ] || [ -f /tmp/needs_upgrade ]; then +if [[ -f /config/www/nextcloud/config/needs_migration ]] || [[ -f /tmp/needs_install ]] || [[ -f /tmp/needs_upgrade ]]; then echo "Initializing nextcloud ${image_version} (this can take a while) ..." - if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_upgrade ]; then + if [[ -f /config/www/nextcloud/config/needs_migration ]] || [[ -f /tmp/needs_upgrade ]]; then echo "Upgrading nextcloud from ${installed_version} ..." shippedApps=$(jq -r .shippedApps[] /app/www/src/core/shipped.json) for app in ${shippedApps}; do @@ -80,11 +80,11 @@ if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_instal rsync -rlD --exclude-from=/app/upgrade.exclude /app/www/src/ /app/www/public/ for dir in apps config themes; do - if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_upgrade ] || [ -z "$(ls -A /app/www/public/${dir} 2>/dev/null)" ]; then + if [[ -f /config/www/nextcloud/config/needs_migration ]] || [[ -f /tmp/needs_upgrade ]] || [[ -z "$(ls -A /app/www/public/${dir} 2>/dev/null)" ]]; then rsync -rlD --include "/${dir}" --exclude '/*' /app/www/src/ /config/www/nextcloud/ fi done - if [ -z "$(ls -A /data/ 2>/dev/null)" ]; then + if [[ -z "$(ls -A /data/ 2>/dev/null)" ]]; then rsync -rlD --include "/data" --exclude '/*' /app/www/src/ / fi @@ -94,11 +94,11 @@ if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_instal /app/www/public \ /config/www/nextcloud - if [ -f /config/www/nextcloud/config/needs_migration ] || [ -f /tmp/needs_upgrade ]; then + if [[ -f /config/www/nextcloud/config/needs_migration ]] || [[ -f /tmp/needs_upgrade ]]; then # Upgrade occ upgrade else - if [ "${installed_version}" = "0.0.0.0" ]; then + if [[ "${installed_version}" = "0.0.0.0" ]]; then # Install echo "New nextcloud instance" echo "Please run the web-based installer on first connect!" @@ -148,14 +148,14 @@ for APP in richdocumentscode; do echo "Removing ${APP}" fi APP_PATH=$(occ app:getpath "${APP}" 2>/dev/null) - if [ -z "${APP_PATH}" ] || [ ! -d "${APP_PATH}" ]; then + if [[ -z "${APP_PATH}" ]] || [[ ! -d "${APP_PATH}" ]]; then APP_PATH="/app/www/public/apps/${APP}" fi - if [ -d "${APP_PATH}" ]; then + if [[ -d "${APP_PATH}" ]]; then occ app:disable "${APP}" >/dev/null 2>&1 fi APP_STATUS="$(occ config:app:get "${APP}" enabled 2>/dev/null)" - if [ "${APP_STATUS}" != "no" ] && [ -n "${APP_STATUS}" ]; then + if [[ "${APP_STATUS}" != "no" ]] && [[ -n "${APP_STATUS}" ]]; then occ config:app:set "${APP}" enabled --value="no" >/dev/null 2>&1 fi occ app:remove "${APP}" >/dev/null 2>&1 @@ -163,14 +163,14 @@ for APP in richdocumentscode; do done # set data directory -if [ ! -s /config/www/nextcloud/config/config.php ]; then +if [[ ! -s /config/www/nextcloud/config/config.php ]]; then echo -e " '/data',\n);" >/config/www/nextcloud/config/config.php -elif [ -f /config/www/nextcloud/config/config.php ]; then +elif [[ -f /config/www/nextcloud/config/config.php ]]; then sed -i "s|/app/www/public/data|/data|g" /config/www/nextcloud/config/config.php fi #modify javascript mime type and add .mjs support -if [ -s /etc/nginx/mime.types ]; then +if [[ -s /etc/nginx/mime.types ]]; then sed -i 's|\bjs;|js mjs;|g' /etc/nginx/mime.types sed -i 's|\bapplication/javascript|text/javascript|g' /etc/nginx/mime.types fi