OCI image for attic
Find a file
Evelyne [ktycat] 4f6b7f63fe
All checks were successful
ci/woodpecker/push/make Pipeline was successful
chore: Update flake.lock
2026-10-02 01:21:38 +02:00
.woodpecker chore: Update flake.lock 2026-10-02 01:21:38 +02:00
flake.lock chore: Update flake.lock 2026-10-02 01:21:38 +02:00
flake.nix Initial commit 2026-10-02 01:14:13 +02:00
README.md Initial commit 2026-10-02 01:14:13 +02:00

Attic OCI image

Build

Build the image attic:latest with:

bash -c '$(nix build --no-link --print-out-paths .) | docker load'

Usage

Create a secret with

export ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64=$(openssl genrsa -traditional 4096 | base64 -w0)

Run with

docker run -it --rm \
  -e ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64=$ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64 \
  -p 8080:8080 \
  -v attic-data:/var/attic \
  attic:latest

Create an admin token with

docker exec -it [CONTAINER_NAME] atticadm make-token \
  --sub admin-token --validity '999 months' \
  --pull '*' --push '*' --create-cache '*' \
  --configure-cache '*' --configure-cache-retention '*'

Setup attic client with

nix profile add nixpkgs#attic-client
attic login origin https://example.com [GENERATED_TOKEN]

Check attic docs for further usage