use scarf to serve the images (#21)

This allows us to easily switch between container registries while
keeping the same domain prefix. It also gives access to high-level
statistics on the docker pull which can be useful to find out which
images are being used or not.
This commit is contained in:
Jonas Chevalier 2021-04-21 18:05:42 +02:00 committed by GitHub
parent debbce2425
commit 50b4d08da7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 54 deletions

18
readme-image-matrix Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
#
# Usage: ./dockerhub-image-matrix
set -euo pipefail
## Main ##
releases_json=$(nix-instantiate --strict --eval --json)
echo "| Image / Tag | Pull |"
echo "| --- | --- |"
for attr in $(echo "$releases_json" | jq -r "keys[]") ; do
name=nixpkgs/$attr
echo -n "| [$name](https://hub.docker.com/r/$name)"
echo -n "| \`docker pull docker.nix-community.org/$name\` "
echo "|"
done