forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 8
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 #161 from tarilabs/tarilabs-20250117-sync
periodic sync upstream KF to midstream ODH
- Loading branch information
Showing
104 changed files
with
1,069 additions
and
545 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
|
||
############### Default settings ############### | ||
CONTAINER_TOOL=docker | ||
IMG_BFF=kubeflow/model-registry-bff:latest | ||
IMG_FRONTEND=kubeflow/model-registry-ui:latest | ||
IMG_UI=kubeflow/model-registry-ui:latest | ||
IMG_UI_STANDALONE=kubeflow/model-registry-ui-standalone:latest | ||
PLATFORM=linux/amd64 |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
APP_ENV=production | ||
MOCK_AUTH=false | ||
DEPLOYMENT_MODE=integrated | ||
STYLE_THEME=mui-theme |
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 @@ | ||
APP_ENV=test |
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
.DS_Store | ||
|
||
.env*.local | ||
|
||
!*.test |
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,59 @@ | ||
# Source code for the repos | ||
ARG UI_SOURCE_CODE=./frontend | ||
ARG BFF_SOURCE_CODE=./bff | ||
|
||
# Set the base images for the build stages | ||
ARG NODE_BASE_IMAGE=node:20 | ||
ARG GOLANG_BASE_IMAGE=golang:1.22.2 | ||
ARG DISTROLESS_BASE_IMAGE=gcr.io/distroless/static:nonroot | ||
|
||
# UI build stage | ||
FROM ${NODE_BASE_IMAGE} AS ui-builder | ||
|
||
ARG UI_SOURCE_CODE | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy the source code to the container | ||
COPY ${UI_SOURCE_CODE} /usr/src/app | ||
|
||
# Install the dependencies and build | ||
RUN npm cache clean --force | ||
RUN npm ci --omit=optional | ||
RUN npm run build:prod | ||
|
||
# BFF build stage | ||
FROM ${GOLANG_BASE_IMAGE} AS bff-builder | ||
|
||
ARG BFF_SOURCE_CODE | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy the Go Modules manifests | ||
COPY ${BFF_SOURCE_CODE}/go.mod ${BFF_SOURCE_CODE}/go.sum ./ | ||
|
||
# Download dependencies | ||
RUN go mod download | ||
|
||
# Copy the go source files | ||
COPY ${BFF_SOURCE_CODE}/cmd/main.go cmd/main.go | ||
COPY ${BFF_SOURCE_CODE}/internal/ internal/ | ||
|
||
# Build the Go application | ||
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o bff ./cmd/main.go | ||
|
||
# Final stage | ||
# Use distroless as minimal base image to package the application binary | ||
FROM ${DISTROLESS_BASE_IMAGE} | ||
WORKDIR / | ||
COPY --from=bff-builder /usr/src/app/bff ./ | ||
COPY --from=ui-builder /usr/src/app/dist ./static/ | ||
USER 65532:65532 | ||
|
||
# Expose port 8080 | ||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["/bff"] |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/bin | ||
/static-local-run |
This file was deleted.
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
Oops, something went wrong.