Skip to content

Re-write the OCI registry metadata container in Go #188

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

Closed
johnmcollier opened this issue Oct 21, 2020 · 1 comment · Fixed by devfile/registry-support#12 or devfile/registry-support#13
Assignees
Labels
area/registry Devfile registry for stacks and infrastructure

Comments

@johnmcollier
Copy link
Member

The current metadata container for the OCI registry uses shell scripts to generate the index.json, push the devfiles to the registry, and start the Apache HTTP server. This approach gives us little flexibility in pushing up the devfile stacks, as we're not able to easily parse the index.json without pulling down additional dependencies like jq. It also means that we need to package the index-generator and ORAS CLIs (the latter of which is intended only for testing and not use in production) into the container

It would be wise to re-write the metadata container (and server) in Go to make use of the index-generator and oras Go libraries (rather than CLIs), as well as to host the index.json. This will give us additional flexibility in the future, as we look to define APIs on top of the metadata container's server.

@johnmcollier johnmcollier added the area/registry Devfile registry for stacks and infrastructure label Oct 21, 2020
@johnmcollier johnmcollier self-assigned this Oct 21, 2020
@GeekArthur GeekArthur self-assigned this Oct 22, 2020
@GeekArthur
Copy link
Contributor

GeekArthur commented Oct 30, 2020

The metadata container written by golang should follow the changes in this design proposal: #197

More specifically the changes would be:

  1. Remove the code of pulling devfiles from "devfile registry repository" (GitHub devfile repository).
  2. Remove the code of generating initial registry index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry Devfile registry for stacks and infrastructure
Projects
None yet
2 participants