A React web application used when running the Apicurio Registry project in a multi-tenant aware configuration. This UI requires that the following Apicurio Registry related components are all running together in a multi-tenant config:
- Apicurio Registry (multi-tenant enabled)
- Service Registry Fleet Manager
- Apicurio Registry Tenant Manager
In order for this app to work, you need to also be running the Apicurio Registry UI which provides a set of federated module components that this project uses. The UI will fail to load if those are not available. To run the Apicurio Registry UI go here:
https://github.com/Apicurio/apicurio-registry/tree/master/ui
The Apicurio Registry UI UI should be available on port 8888 (which is the default port configured for that project).
To run the app locally, do the following:
$ yarn install
$ yarn start:dev
Then open your browser (if it doesn't automatically open) to:
By default, apicurio-registry-mt-ui
will start on localhost with authentication
enabled. This is called the "local" profile and is the default. However, there are multiple
profiles supported:
local
- the default mode with authentication enabled and local URLs for services (e.g. Fleet Manager)operate-first
- authentication enabled (via Apicurio SSO) and using Operate First for services (e.g. Fleet Manager)
To run with an alternative profile, set the REGISTRY_MT_CONFIG
environment
variable. So for example:
$ export REGISTRY_MT_CONFIG=operate-first
$ yarn start:dev
To run a production build using docker:
$ yarn install
$ yarn build
$ docker build -t="apicurio/apicurio-registry-mt-ui" --rm .
$ docker run -it -p 7777:8080 apicurio/apicurio-registry-mt-ui
Then open your browser to http://localhost:7777/
When running the docker container you can customize it with the following environment variables:
REGISTRY_UI_URL
- The URL to theapicurio_registry
federated modules. Defaults tohttp://localhost:8888
SRS_API_URL
- The URL to the Service Registry Fleet Manager API. Defaults tohttp://localhost:8081
AUTH_ENABLED
- Whether to enable Keycloak authentication. Defaults tofalse
KEYCLOAK_REALM
- The Keycloak realm to use for authentication. Defaults tooperate-first-apicurio
KEYCLOAK_URL
- The Keycloak auth URL to use for authentication. Defaults tohttps://auth.apicur.io/auth
KEYCLOAK_SSL_REQUIRED
- The "SSL required" setting for Keycloak authentication. Defaults toexternal
KEYCLOAK_RESOURCE
- The Keycloak resource to use for authentication. Defaults tosr-ui
NAV_ENABLED
- Whether to enable the left-hand navigation area. Defaults tofalse
NAV_DESIGNER_URL
- The URL to the Apicurio API Designer UI. No default value.