Create an image to load schemas into the ConfigDB #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Create a Dockerfile which builds an image, to be run from service-setup, which loads the current set of schemas into the ConfigDB.
Schema information is loaded under two different ConfigDB Apps: one contains the actual schema, the other contains the metadata (name, version and so on) the Manager needs to display the schema selection screen.
The
$id
and$ref
fields of the schemas are rewritten to use URLs under theurn:uuid:
scheme. This URL scheme simply names a UUID without providing any address information. It will be necessary to have direct access to the schema UUID so that refs can be followed to other schemas. If necessary this can be changed to some other scheme; there are various possibilities, from a well-known scheme usingfactoryplus.app.amrc.co.uk
to working out the ConfigDB URL of the schema config entry itself. But this is simpler and I think will be sufficient for now.