The index.json is stored inside the devfile-registry container atm. Ideally we would like to store a cached version of this file inside the devfile-registry container, while maintaining the original version inside the OCI-registry. This way we can update the index.json every time we receive updates for stacks from the github registry repo, while we don't have to query every time the oci-registry and use the cached version.
Upon its initialization the index/server should be able to populate the oci-registry container with the index.json and to store this very first version inside the devfile-registry container.
In order to keep the cached version up-to-date with the one stored in the oci-registry the devfile-registry container should have a caching mechanism that will take care of the update of the index.json file.
Acceptance Criteria
[ ] The index.json is moved to the oci-registry container & a cached version is stored inside the devfile-registry container side.
[ ] A caching mechanism is created inside the devfile-registry side taking care of the update of the cached version of the index.json.
/kind task
Which area/kind this issue is related to?
/area registry
Issue Description
The
index.json
is stored inside thedevfile-registry
container atm. Ideally we would like to store a cached version of this file inside thedevfile-registry
container, while maintaining the original version inside theOCI-registry
. This way we can update theindex.json
every time we receive updates for stacks from the github registry repo, while we don't have to query every time the oci-registry and use the cached version.Upon its initialization the
index/server
should be able to populate theoci-registry
container with theindex.json
and to store this very first version inside thedevfile-registry
container.In order to keep the cached version up-to-date with the one stored in the
oci-registry
thedevfile-registry
container should have a caching mechanism that will take care of the update of theindex.json
file.Acceptance Criteria
index.json
is moved to theoci-registry
container & a cached version is stored inside thedevfile-registry
container side.devfile-registry
side taking care of the update of the cached version of theindex.json
.