ocf / dockers

OCF-flavored Docker images
https://hub.docker.com/r/theocf/debian/
Other
3 stars 3 forks source link

docker registry frontend #13

Open abizer opened 5 years ago

abizer commented 5 years ago

it might be nice to have like a frontend for biohazard so we can see what images are in the registry

jvperrin commented 5 years ago

It's possible to view all this information by making HTTP requests to the docker registry itself, which lives at localhost:5000 on biohazard, but it's not the cleanest way to see this information:

jvperrin@biohazard:~$ curl localhost:5000/v2/_catalog
{"repositories":["create","grafana","ircbot","metabase","ocfweb-static","ocfweb-web","ocfweb-worker","pma","puppetboard","rt","rt-dev-kpengboy","slackbridge","snmp_exporter","templates","theocf/debian"]}
jvperrin@biohazard:~$ curl localhost:5000/v2/snmp_exporter/tags/list
{"name":"snmp_exporter","tags":["2018-11-12-T00-21-56-gita9ff818","2018-11-12-T21-11-17-gita9ff818","2018-11-09-T11-25-16-gita9ff818","2018-10-05-T12-55-46-gite761204","2018-10-18-T21-09-36-gite761204","2018-10-05-T12-48-33-gite761204","2018-10-13-T21-16-18-gite761204","2018-11-10-T21-11-12-gita9ff818","2018-10-16-T21-10-17-gite761204","2018-10-11-T21-09-39-gite761204","2018-10-17-T21-13-17-gite761204","2018-10-14-T21-10-22-gite761204","2018-11-11-T21-11-01-gita9ff818","2018-10-05-T21-10-57-gite761204","2018-10-09-T21-10-05-gite761204","2018-10-10-T21-10-10-gite761204","2018-11-09-T21-10-21-gita9ff818","2018-10-08-T21-16-57-gite761204"]}

Maybe that's enough if we document it well? Not sure, it's certainly a solution/workaround, but maybe not the most usable one since it requires running commands from a single server and makes some rather messy output if you don't filter it with jq or something:

jvperrin@biohazard:~$ curl -s localhost:5000/v2/snmp_exporter/tags/list | jq '.tags'
[
  "2018-11-12-T00-21-56-gita9ff818",
  "2018-11-12-T21-11-17-gita9ff818",
  "2018-11-09-T11-25-16-gita9ff818",
  "2018-10-05-T12-55-46-gite761204",
  "2018-10-18-T21-09-36-gite761204",
  "2018-10-05-T12-48-33-gite761204",
  "2018-10-13-T21-16-18-gite761204",
  "2018-11-10-T21-11-12-gita9ff818",
  "2018-10-16-T21-10-17-gite761204",
  "2018-10-11-T21-09-39-gite761204",
  "2018-10-17-T21-13-17-gite761204",
  "2018-10-14-T21-10-22-gite761204",
  "2018-11-11-T21-11-01-gita9ff818",
  "2018-10-05-T21-10-57-gite761204",
  "2018-10-09-T21-10-05-gite761204",
  "2018-10-10-T21-10-10-gite761204",
  "2018-11-09-T21-10-21-gita9ff818",
  "2018-10-08-T21-16-57-gite761204"
]
kpengboy commented 5 years ago

There are some existing projects on the internet for this, if anyone is interested