-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update central dashboard to NodeJS 16 (#7578)
* update central-dashboard to NodeJS 16 Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * update `@kubernetes/client-node` to `0.19.0` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * update `express` to `4.19.2` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * update `@grpc/grpc-js` to `1.10.8` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * update `@types/serve-static` to `1.15.5` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * update `typescript` to `4.9.5` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * fix TS2538 error in metrics query interval Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * update `webpack` to `4.47.0` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * fix tests (update kustomize + others) Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * remove unnecessary `npm rebuild` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * use `tini` as entrypoint Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * remove `script-ext-html-webpack-plugin` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * fix namespace selector for iframes in local dev Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> --------- Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
- Loading branch information
1 parent
7092541
commit 1b5d92d
Showing
14 changed files
with
25,206 additions
and
6,607 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist/ | ||
node_modules/ |
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,36 +1,31 @@ | ||
# Step 1: Builds and tests | ||
FROM node:14.21.3-bullseye AS build | ||
FROM node:16.20.2-bullseye AS build | ||
|
||
ARG kubeflowversion | ||
ARG commit | ||
|
||
ENV BUILD_VERSION=$kubeflowversion | ||
ENV BUILD_COMMIT=$commit | ||
ENV CHROME_BIN=/usr/bin/chromium | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
|
||
RUN apt update -qq && apt install -qq -y gnulib | ||
|
||
COPY . /centraldashboard | ||
WORKDIR /centraldashboard | ||
|
||
RUN BUILDARCH="$(dpkg --print-architecture)" && npm rebuild && \ | ||
if [ "$BUILDARCH" = "arm64" ] || \ | ||
[ "$BUILDARCH" = "armhf" ]; then \ | ||
export CFLAGS=-Wno-error && \ | ||
export CXXFLAGS=-Wno-error; \ | ||
fi && \ | ||
npm install && \ | ||
npm run build && \ | ||
npm prune --production | ||
RUN npm ci \ | ||
&& npm run build \ | ||
&& npm prune --production | ||
|
||
# Step 2: Packages assets for serving | ||
FROM node:14.21.3-alpine3.17 AS serve | ||
FROM node:16.20.2-alpine AS serve | ||
|
||
RUN apk add --no-cache tini | ||
|
||
USER node | ||
|
||
ENV NODE_ENV=production | ||
WORKDIR /app | ||
COPY --from=build /centraldashboard . | ||
WORKDIR /usr/src/app | ||
COPY --from=build --chown=node:node /centraldashboard . | ||
|
||
EXPOSE 8082 | ||
ENTRYPOINT ["npm", "start"] | ||
ENTRYPOINT ["/sbin/tini", "--" , "npm", "start"] |
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
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.