mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
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:
18
readme-image-matrix
Executable file
18
readme-image-matrix
Executable 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
|
||||
Reference in New Issue
Block a user