Skip to content

Commit

Permalink
upgrade node from 12 to 16
Browse files Browse the repository at this point in the history
Signed-off-by: tariq-hasan <mmtariquehsn@gmail.com>
  • Loading branch information
tariq-hasan committed Sep 15, 2024
1 parent f155d87 commit 8a74e01
Show file tree
Hide file tree
Showing 49 changed files with 142,706 additions and 64,691 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/centraldb_angular_frontend_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Check frontend code formatting
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16
- name: Install Kubeflow common library dependecies
run: |
cd components/crud-web-apps/common/frontend/kubeflow-common-lib
Expand All @@ -53,14 +53,14 @@ jobs:
run-ui-tests:
name: UI tests in chrome and firefox
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install KinD
run: ./components/testing/gh-actions/install_kind.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/common_frontend_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Check frontend code formatting
run: |
Expand All @@ -35,10 +35,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/jwa_frontend_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Check frontend formatting
run: |
Expand All @@ -36,10 +36,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand All @@ -63,10 +63,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand All @@ -82,5 +82,5 @@ jobs:
- name: Serve UI & run Cypress tests in Chrome and Firefox
run: |
cd components/crud-web-apps/jupyter/frontend
npm run serve & npx wait-on http://localhost:4200
npm run serve > serve.log 2>&1 & npx wait-on http://localhost:4200
npm run ui-test-ci-all
2 changes: 1 addition & 1 deletion .github/workflows/notebook_controller_unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Run unit tests
run: |
cd components/notebook-controller
make test
make test
2 changes: 1 addition & 1 deletion .github/workflows/pvcviewer_controller_unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Run unit tests
run: |
cd components/pvcviewer-controller
make test
make test
12 changes: 6 additions & 6 deletions .github/workflows/twa_frontend_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Format tensorboards web app
run: |
Expand All @@ -36,10 +36,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand All @@ -63,10 +63,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand All @@ -82,5 +82,5 @@ jobs:
- name: Serve UI & run Cypress tests in Chrome and Firefox
run: |
cd components/crud-web-apps/tensorboards/frontend
npm run serve & npx wait-on http://localhost:4200
npm run serve > serve.log 2>&1 & npx wait-on http://localhost:4200
npm run ui-test-ci-all
14 changes: 7 additions & 7 deletions .github/workflows/vwa_frontend_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Check frontend code formatting
run: |
Expand All @@ -35,10 +35,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand All @@ -62,10 +62,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand Down Expand Up @@ -93,10 +93,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node version to 12
- name: Setup node version to 16
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Install Kubeflow common library dependecies
run: |
Expand Down
9 changes: 4 additions & 5 deletions components/centraldashboard-angular/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# --- Build the backend ---
FROM node:12-buster-slim as backend
FROM node:16-bullseye-slim as backend

COPY ./centraldashboard-angular/backend/ ./src
WORKDIR /src
Expand All @@ -9,7 +9,7 @@ RUN npm ci && \
npm prune --production

# --- Build the frontend kubeflow library ---
FROM node:12-buster-slim as frontend-kubeflow-lib
FROM node:16-bullseye-slim as frontend-kubeflow-lib

WORKDIR /src

Expand All @@ -24,7 +24,7 @@ COPY ./crud-web-apps/common/frontend/kubeflow-common-lib/tsconfig.json .
RUN npm run build

# --- Build the frontend ---
FROM node:12-buster-slim as frontend
FROM node:16-bullseye-slim as frontend

ARG kubeflowversion
ENV BUILD_VERSION=$kubeflowversion
Expand All @@ -39,7 +39,7 @@ COPY --from=frontend-kubeflow-lib /src/dist/kubeflow/ ./node_modules/kubeflow/
RUN npm run build -- --output-path=./dist/default --configuration=production

# Step 2: Packages assets for serving
FROM node:12.22.12-alpine AS serve
FROM node:16.20.2-alpine AS serve

ENV NODE_ENV=production
WORKDIR /app
Expand All @@ -50,4 +50,3 @@ COPY --from=frontend /src/dist/default/assets/dashboard_lib.bundle.js.map ./dist

EXPOSE 8082
ENTRYPOINT ["npm", "start"]

Loading

0 comments on commit 8a74e01

Please sign in to comment.