Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker registry frontend #13

Open
abizer opened this issue Nov 25, 2018 · 2 comments
Open

docker registry frontend #13

abizer opened this issue Nov 25, 2018 · 2 comments

Comments

@abizer
Copy link
Member

abizer commented Nov 25, 2018

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

@jvperrin
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants