-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor/merge dashboard to master (#211)
- Loading branch information
Showing
161 changed files
with
2,459 additions
and
1,330 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
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 |
---|---|---|
|
@@ -9,29 +9,6 @@ env: | |
tagName: ${{ github.ref_name }} | ||
|
||
jobs: | ||
release-dashboard-chart: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
mark_as_latest: false | ||
skip_existing: true | ||
charts_dir: ./distribution/dashboard/manifests | ||
|
||
release-oceanbase-dashboard: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -62,9 +39,9 @@ jobs: | |
- name: Build and push oceanbase-dashboard w/o cache | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./distribution/dashboard | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./distribution/dashboard/Dockerfile | ||
file: ./build/Dockerfile.dashboard | ||
push: true | ||
tags: ${{ vars.DOCKER_PUSH_BASE }}/oceanbase-dashboard:${{ steps.set_version_vars.outputs.version }} | ||
build-args: | | ||
|
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,24 @@ | ||
FROM node:16-alpine as builder-fe | ||
WORKDIR /workspace | ||
COPY ./ui . | ||
ENV NODE_OPTIONS=--max_old_space_size=5120 | ||
RUN yarn | ||
RUN yarn build | ||
|
||
FROM golang:1.20.4 as builder-be | ||
ARG GOPROXY=https://goproxy.io,direct | ||
ARG GOSUMDB=sum.golang.org | ||
ARG COMMIT_HASH=unknown | ||
WORKDIR /workspace | ||
COPY . . | ||
RUN make dep-install build | ||
|
||
# start build docker image | ||
FROM openanolis/anolisos:8.4-x86_64 | ||
WORKDIR /root | ||
COPY --from=builder-be /workspace/bin/oceanbase-dashboard . | ||
COPY --from=builder-fe /workspace/dist ./ui/dist | ||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | ||
USER root | ||
|
||
ENTRYPOINT ["/root/oceanbase-dashboard"] |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
distribution/dashboard/internal/business/common/converter.go
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
distribution/dashboard/internal/business/constant/constant.go
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
distribution/dashboard/internal/business/enums/obcluster/status.go
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
distribution/dashboard/internal/business/metric/constant/metric_constant.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.