forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from kubeflow/main
[pull] main from kubeflow:main
- Loading branch information
Showing
164 changed files
with
1,541 additions
and
352 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,5 @@ | ||
|
||
############### Default settings ############### | ||
CONTAINER_TOOL=docker | ||
IMG_BFF=kubeflow/model-registry-bff:dev-latest | ||
IMG_FRONTEND=kubeflow/model-registry-ui:dev-latest |
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,8 @@ | ||
# editor | ||
.idea/ | ||
.vscode/ | ||
|
||
# misc | ||
.DS_Store | ||
|
||
.env*.local |
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,79 @@ | ||
DEFAULT_ENV_FILE := .env | ||
ifneq ("$(wildcard $(DEFAULT_ENV_FILE))","") | ||
include ${DEFAULT_ENV_FILE} | ||
export $(shell sed 's/=.*//' ${DEFAULT_ENV_FILE}) | ||
endif | ||
|
||
DEV_ENV_FILE := .env.development | ||
ifneq ("$(wildcard $(DEV_ENV_FILE))","") | ||
include ${DEV_ENV_FILE} | ||
export $(shell sed 's/=.*//' ${DEV_ENV_FILE}) | ||
endif | ||
|
||
ENV_FILE := .env.local | ||
ifneq ("$(wildcard $(ENV_FILE))","") | ||
include ${ENV_FILE} | ||
export $(shell sed 's/=.*//' ${ENV_FILE}) | ||
endif | ||
|
||
.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) | ||
|
||
|
||
############ Dev Environment ############ | ||
|
||
.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 | ||
|
||
############ Build ############ | ||
|
||
.PHONY: build-bff | ||
build-bff: | ||
$(CONTAINER_TOOL) build -t ${IMG_BFF} ./bff | ||
|
||
.PHONY: build-frontend | ||
build-frontend: | ||
$(CONTAINER_TOOL) build -t ${IMG_FRONTEND} ./frontend | ||
|
||
.PHONY: build | ||
build: build-bff build-frontend | ||
|
||
############ Push ############ | ||
|
||
.PHONY: push-bff | ||
push-bff: | ||
${CONTAINER_TOOL} push ${IMG_BFF} | ||
|
||
.PHONY: push-frontend | ||
push-frontend: | ||
${CONTAINER_TOOL} push ${IMG_FRONTEND} | ||
|
||
.PHONY: push | ||
push: push-bff push-frontend | ||
|
||
############ Deployment ############ | ||
|
||
.PHONY: docker-compose | ||
docker-compose: | ||
$(CONTAINER_TOOL) compose -f docker-compose.yaml up | ||
|
||
.PHONY: kind-deployment | ||
kind-deployment: | ||
./scripts/deploy_kind_cluster.sh |
Oops, something went wrong.