forked from bentoml/Yatai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade yatai-deployment to support bentoml configuration, cust…
…om resources, pod topology and affinity (bentoml#344) * feat: bump Go to 1.19 * feat(doc): add v1alpha3 BentoDeployment documentation * feat: upgrade yatai-deployment to support BentoDeployment v1alpha3 * feat: do not overwrite previous annotations, labels and extraPodSpecs * feat: custom resource input * feat: support bentoml configuration * optimize: friendly time format for pod start time * feat: use monaco editor for bentoml configuration * feat: render an icon if pod status is succeeded * feat(dashboard): log component supports the selection of containers * feat: add image-build statuses to deployment * feat: show container status log component * fix(scripts): start-dev with trap * feat(api-server): upgrade yatai-deployment to support extra_pod_metadata * optimize(ci): speed up release ci * fix(ci): make golangci-lint happy * feat(api-server): multipart upload apis * feat(ui): support set transmission strategy for organization * feat: compatible with all versions of BentoDeployment
- Loading branch information
Showing
56 changed files
with
1,674 additions
and
935 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.17 | ||
FROM alpine:3.16.2 | ||
|
||
RUN mkdir /app | ||
|
||
|
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,6 +1,19 @@ | ||
FROM golang:1.17 | ||
# syntax = docker/dockerfile:1-experimental | ||
|
||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.2 | ||
FROM golang:1.19-alpine as base | ||
|
||
RUN wget -nv https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 -O /usr/bin/yq && chmod a+x /usr/bin/yq | ||
RUN go get -u github.com/client9/misspell/cmd/misspell | ||
WORKDIR /src | ||
ENV CGO_ENABLED=0 | ||
COPY go.* ./ | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
go mod download | ||
|
||
FROM base AS build | ||
ARG VERSION_BUILDFLAGS | ||
RUN --mount=target=. \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
--mount=type=cache,target=/go/pkg/mod \ | ||
go build -ldflags "${VERSION_BUILDFLAGS}" -o /bin/api-server ./api-server/main.go | ||
|
||
FROM scratch AS export | ||
COPY --from=build /bin/api-server . |
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
Oops, something went wrong.