-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revamp docs Signed-off-by: lucferbux <[email protected]> * Refactor codebase to improve code handling Signed-off-by: lucferbux <[email protected]> * Fix patternfly 6 isue Signed-off-by: lucferbux <[email protected]> * Enhance TODOs Signed-off-by: lucferbux <[email protected]> * Update clients/ui/scripts/deploy_kind_cluster.sh Co-authored-by: Alex Creasy <[email protected]> Signed-off-by: Lucas Fernandez <[email protected]> * Add user token in kind Signed-off-by: lucferbux <[email protected]> --------- Signed-off-by: lucferbux <[email protected]> Signed-off-by: Lucas Fernandez <[email protected]> Co-authored-by: Alex Creasy <[email protected]>
- Loading branch information
1 parent
962d135
commit 5f55dbd
Showing
146 changed files
with
546 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CONTAINER_TOOL ?= docker | ||
|
||
.PHONY: all | ||
all: build | ||
|
||
.PHONY: help | ||
help: ## Display this help. | ||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
||
.PHONY: dev-install-dependencies | ||
dev-install-dependencies: | ||
cd frontend && npm install | ||
|
||
.PHONY: dev-bff | ||
dev-bff: | ||
cd bff && make run PORT=4000 MOCK_K8S_CLIENT=true MOCK_MR_CLIENT=true | ||
|
||
.PHONY: dev-frontend | ||
dev-frontend: | ||
cd frontend && npm run start:dev | ||
|
||
.PHONY: dev-start | ||
dev-start: | ||
make -j 2 dev-bff dev-frontend | ||
|
||
.PHONY: docker-compose | ||
docker-compose: | ||
$(CONTAINER_TOOL) compose -f docker-compose.yaml up | ||
|
||
.PHONY: kind-deployment | ||
kind-deployment: | ||
./scripts/deploy_kind_cluster.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[frontend requirements]: ./frontend/docs/dev-setup.md#requirements | ||
[BFF requirements]: ./bff/README.md#pre-requisites | ||
[frontend dev setup]: ./frontend/docs/dev-setup.md#development | ||
[BFF dev setup]: ./bff/README.md#development | ||
|
||
# Model Registry UI | ||
|
||
## Overview | ||
|
||
The Model Registry UI is a standalone web app for Kubeflow Model Registry. In this repository, you will find the frontend and backend for the Model Registry UI. | ||
|
||
## Prerequisites | ||
|
||
* [Frontend requirements] | ||
* [BFF requirements] | ||
|
||
## Set Up | ||
|
||
### Development | ||
|
||
To run the a mocked dev environment you can either: | ||
|
||
* Use the makefile command to install dependencies `make dev-install-dependencies` and then start the dev environment `make dev-start`. | ||
|
||
* Or follow the [frontend dev setup] and [BFF dev setup]. | ||
|
||
### Docker deployment | ||
|
||
To build the Model Registry UI container, run the following command: | ||
|
||
```shell | ||
make docker-compose | ||
``` | ||
|
||
### Kubernetes Deployment | ||
|
||
For a in-depth guide on how to deploy the Model Registry UI, please refer to the [local kubernetes deployment](./bff/docs/dev-guide.md) documentation. | ||
|
||
To quickly enable the Model Registry UI in your Kind cluster, you can use the following command: | ||
|
||
```shell | ||
make kind-deployment | ||
``` | ||
|
||
## OpenAPI Specification | ||
|
||
You can find the OpenAPI specification for the Model Registry UI in the [openapi](./api/openapi) directory. | ||
A live version of the OpenAPI specification can be found [here](https://editor.swagger.io/?url=https://raw.githubusercontent.com/kubeflow/model-registry/main/clients/ui/api/openapi/mod-arch.yaml). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.