Skip to content

Commit 9dcb440

Browse files
authored
vdk-jupyter: installation and build (#2319)
What: Pinned all the dependencies to a specific version and add package-lock.json file. The purpose is to lock the installed dependencies to a specific version number so that subsequent installations can replicate the exact same dependency tree in the future, regardless of any new package releases. Why: the package has really unstable build Tested: cicd script is added for installing and building the package Signed-off-by: Duygu Hasan [hduygu@vmware.com](mailto:hduygu@vmware.com)
1 parent 9865728 commit 9dcb440

File tree

3 files changed

+614
-1589
lines changed

3 files changed

+614
-1589
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2021-2023 VMware, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
.retry:
5+
retry_options:
6+
max: 1
7+
when:
8+
- always
9+
10+
11+
build-vdk-jupyterlab-extension:
12+
stage: build
13+
image: "python:3.8-alpine"
14+
before_script:
15+
- cd projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension || exit 1
16+
- pip install -U pip setuptools pre-commit
17+
- apk --no-cache add npm
18+
- apk add rust cargo
19+
- apk add libffi-dev
20+
- pip install jupyter
21+
script:
22+
- echo "Install Dependencies..."
23+
- npm ci
24+
- echo "Install Vdk JupyterLab Extension..."
25+
- pip install .
26+
- echo "Building VDK JupyterLab Extension..."
27+
- npm rebuild
28+
retry: !reference [.retry, retry_options]
29+
rules: # we want to trigger build jobs if there are changes to this package,
30+
# but not if there are changes to VDK plugins or the main directory
31+
- if: '$CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "external_pull_request_event"'
32+
changes:
33+
- "projects/vdk-plugins/vdk-jupyter/**/*"

0 commit comments

Comments
 (0)