- .github/workflows/docker-images.yml: manual only (workflow_dispatch) with the release tag as input; a plan job lists the flavors the release has an engine package for; one job per flavor builds the image and, only with push on, pushes ghcr.io/niko1221/strata:<version>-<flavor> and latest-<flavor> with GITHUB_TOKEN (packages: write). - docker/fetch-engines.py: downloads the engine package from the release and checks it against the signed update feed (feed signature, archive size and SHA-256, manifest hash, package signature, every file), the same code as `strata update`. Flavors cuda13, cuda12, rocm-gfx120x, rocm-gfx110x, rocm-gfx1151 (the halo package), sycl (only if the feed lists one). - docker/publish.sh: the same steps by hand (fetch, build, start check, push only with --push). - Fix: docker/build.sh did not copy docs/TERMINAL_LAUNCH.md, which package_terminal.py needs; no image could be built from a clean tree. - Dockerfile: OCI source/url/documentation labels (ghcr links the package to the repository). - Compose files and docs/DOCKER.md name the 0.2.1 tags on ghcr.io; DOCKER.md has a maintainers section. Tests for the scripts, the workflow and the fetch.
13 lines
691 B
Bash
13 lines
691 B
Bash
# Copy to .env next to the compose file you use. Every line is optional.
|
|
# STRATA_IMAGE=strata:0.2.1-cuda13 # only to use an image you built yourself (docker/build.sh); the default is the published ghcr.io/niko1221/strata image
|
|
# MODEL=IQ3_XXS
|
|
# MODEL_PATH=/models # with a volume line - /srv/gguf/IQ3_XXS:/models:ro
|
|
# CONTEXT=32k
|
|
# PARALLEL=2
|
|
# VISION=off
|
|
# TUNE=skip
|
|
# API_KEY=put-a-long-random-key-here # openssl rand -hex 24
|
|
# STRATA_BIND=127.0.0.1 # 0.0.0.0 = reachable from your network (then use a real API_KEY)
|
|
# STRATA_PORT=8080
|
|
# RENDER_GID= # AMD / Intel only: getent group render | cut -d: -f3
|