Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,872 Commits

Folders and files

Repository files navigation

Containers

An opinionated collection of container images

Tag immutability

The containers built here do not use immutable tags, as least not in the more common way you have seen from linuxserver.io or Bitnami.

We do take a similar approach but instead of appending a -ls69 or -r420 prefix to the tag we instead insist on pinning to the sha256 digest of the image, while this is not as pretty it is just as functional in making the images immutable.

Container Immutable
ghcr.io/onedr0p/sonarr:rolling ❌
ghcr.io/onedr0p/sonarr:3.0.8.1507 ❌
ghcr.io/onedr0p/sonarr:rolling@sha256:8053... ✅
ghcr.io/onedr0p/sonarr:3.0.8.1507@sha256:8053... ✅

If pinning an image to the sha256 digest, tools like Renovate support updating the container on a digest or application version change.

Rootless

To run these containers as non-root make sure you update your configuration to the user and group you want.

Docker compose

networks:
  sonarr:
    name: sonarr
    external: true
services:
  sonarr:
    image: ghcr.io/onedr0p/sonarr:3.0.8.1507
    container_name: sonarr
    user: 65534:65534
    # ...

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: sonarr
# ...
spec:
  # ...
  template:
    # ...
    spec:
      # ...
      securityContext:
        runAsUser: 65534
        runAsGroup: 65534
        fsGroup: 65534
        fsGroupChangePolicy: OnRootMismatch
# ...

Passing arguments to a application

Some applications do not support defining configuration via environment variables and instead only allow certain config to be set in the command line arguments for the app. To circumvent this, for applications that have an entrypoint.sh read below.

  1. First read the Kubernetes docs on defining command and arguments for a Container.

  2. Look up the documentation for the application and find a argument you would like to set.

  3. Set the extra arguments in the args section like below.

    args:
      - --port
      - "8080"

Configuration volume

For applications that need to have persistent configuration data the config volume is hardcoded to /config inside the container. This is not able to be changed in most cases.

Available Images

Each Image will be built with a rolling tag, along with tags specific to it's version. Available Images Below

Container Platforms Image
music-transcode linux/amd64 ghcr.io/auricom/music-transcode
resilio-sync linux/amd64 ghcr.io/auricom/resilio-sync
toolbox linux/amd64 ghcr.io/auricom/toolbox

Build, test, and release

Install Docker with the Buildx plugin, Mise, Python 3, and Task. Run mise install --locked to install the pinned Go and workflow lint tools.

task APP=toolbox build
task APP=toolbox test
task check
task render-readme

Each app's docker-bake.hcl defines its version and supported platforms. Keep the generated inventory current when adding or removing apps. Toolbox and music-transcode use rolling; Resilio uses an exact upstream package version and checksum. Renovate can propose Resilio package updates; update PACKAGE_SHA256 alongside PACKAGE_VERSION (VERSION is derived from it) from the vendor's Debian package index.

Pull requests and merge-queue runs build and test changed apps without publishing. Shared CI or test changes validate all apps. Main-branch changes publish affected images with rolling and, for versioned apps, version tags. Scheduled discovery is retired; update committed build inputs to release new versions.

For a manual build, select Release on Merge in GitHub Actions, provide one app name, and leave release unchecked to build and test without publishing. Enable release to publish; enable no-cache to bypass cached build layers. Published builds export per-architecture registry caches, assemble the manifest, submit an SBOM dependency snapshot, and attest the final digest. Container smoke tests run on non-publishing builds before merge.

Verify a published image using:

gh attestation verify --repo auricom/containers oci://ghcr.io/auricom/toolbox:rolling

After migrating CI, run a manual release and inspect its manifest, dependency snapshot, and attestation. The aggregate required check remains named Build matrix success.

Deprecations

Containers here can be deprecated at any point, this could be for any reason described below.

  1. The upstream application is no longer actively developed
  2. The upstream application has an official upstream container that follows closely to the mission statement described here
  3. The upstream application has been replaced with a better alternative
  4. The maintenance burden of keeping the container here is too bothersome

Note: Deprecated containers will remained published to this repo for 6 months after which they will be pruned.

Credits

onedr0p

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages