forked from 47-studio-org/repo-info
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate-readme.sh
executable file
·30 lines (19 loc) · 999 Bytes
/
generate-readme.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -Eeuo pipefail
repo="$1"; shift
repoMd='`'"$repo"'`'
cat <<EOF
# $repoMd repo-info
This directory contains additional information about the published artifacts of [the $repoMd official image](https://hub.docker.com/_/$repo/).
- [the \`remote\` directory](remote/):
- gathered from the Docker Hub/Registry API
- image digests/blobs, transfer sizes, image metadata, etc.
- [the \`local\` directory](local/):
- inspected from the image on-disk after it is pulled
- installed packages, creation date, architecture, environment variables, detected licenses, etc.
---
- [Automated \`update-remote.sh\`:
](https://doi-janky.infosiftr.net/job/repo-info/job/remote/)
- [Automated \`scan-local.sh\` ($repoMd):
](https://doi-janky.infosiftr.net/job/repo-info/job/local/job/$repo)
EOF