61 lines
3.3 KiB
Markdown
61 lines
3.3 KiB
Markdown
# docker-flood-client
|
|
|
|
Source: https://git.k2patel.in/k2patel/docker-flood-client
|
|
|
|
`docker.io/k2patel/floodui:latest` is the maintained image variant and is
|
|
an Alpine/musl distroless runtime. Version tags such as `:v4.16.4` preserve each
|
|
published release. The separate `:distroless` tag is retired.
|
|
It runs the Flood web UI/API and connects to an external torrent service;
|
|
it does not bundle or start rTorrent.
|
|
|
|
## Build and publication
|
|
|
|
Every Monday at 09:17 UTC, Gitea Actions checks the latest stable release at
|
|
https://github.com/jesec/flood/releases. Drafts and prereleases are excluded.
|
|
If its version tag is missing from Docker Hub, the workflow builds the
|
|
client-only image, runs the existing startup validation, and publishes both
|
|
`:latest` and the upstream version tag. An existing version skips the build.
|
|
API/registry errors fail the check; failed builds are retried on the next weekly
|
|
run because no version image was published. No repository tag or release is
|
|
needed for these automatic builds.
|
|
|
|
Gitea Actions also publishes when a `v*` tag is created in this repository, using that
|
|
tag as the upstream `jesec/flood` release version (for example, `v4.16.4`). Create
|
|
tags on commits containing this workflow. Ordinary branch pushes do not trigger
|
|
builds. Each successful build publishes `docker.io/k2patel/floodui:latest` and
|
|
the matching version tag.
|
|
|
|
For a manual build, select `main` in Actions → **Build and Push Distroless Flood**
|
|
→ Run workflow. Leave `flood_version` as `auto` to check now, or enter an explicit
|
|
release tag such as `v4.16.4` to force a rebuild. Use this option for tags created
|
|
before tag-triggered builds were restored; changing the workflow does not
|
|
trigger a build for an existing tag.
|
|
The upstream pnpm lockfile builds the server and UI; switching release families
|
|
may require changes to the build tooling.
|
|
|
|
The workflow uses `Dockerfile.client`, Node 24.18.1 on Alpine 3.24, and a scratch
|
|
final image. It includes Node, the bundled server/UI, mediainfo, GNU df, their
|
|
musl libraries, CA certificates and timezone data. There is no shell, npm/pnpm,
|
|
package manager, source tree, node_modules or compiler in the runtime.
|
|
Node starts directly with `--host=0.0.0.0 --rundir=/server/`.
|
|
|
|
CI starts Flood in the stripped filesystem and requires HTTP 200, working
|
|
mediainfo/df, and absence of shell/package-manager binaries before publication.
|
|
Builds use the Kubernetes runner for `linux/amd64`, pushing directly to Docker
|
|
Hub; temporary builders and caches are removed afterward. Configure Actions
|
|
secrets `DOCKER_USERNAME` and `DOCKER_TOKEN` with write access to `k2patel/floodui`.
|
|
The weekly schedule becomes active once the workflow is on the default branch
|
|
(`main`). The release check uses public GitHub and Docker Hub APIs and requires
|
|
no additional secrets. Run `node --test tests/check-release.cjs` to test release
|
|
selection and skip/error handling locally.
|
|
|
|
## Updating an existing deployment
|
|
|
|
Use `k2patel/floodui:latest`, pull, and recreate the service. Keep existing
|
|
connection settings and mounts. Root UID, port 3000 and `/server/db` are unchanged.
|
|
The default Compose file in docker-rtorrent uses distroless `:latest` for both
|
|
services and supplies rTorrent's native health check; no overlay is needed.
|
|
|
|
Public access is read-only; account registration is disabled. Maintainer-applied
|
|
contributions can be based on a branch or patch against the current Gitea source.
|