Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions kubeflow-volumes-web-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
package:
name: kubeflow-volumes-web-app
version: 1.7.0
epoch: 0
description: Kubeflow volumes web app component
copyright:
- license: Apache-2.0
dependencies:
runtime:
- python3
- py3-setuptools
- bash

environment:
contents:
packages:
- wolfi-base
- busybox
- ca-certificates-bundle
- build-base
- python3
- nodejs-16
- py3-setuptools
- py3-wheel
- py3-pip
- openssl

pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubeflow/kubeflow
tag: v${{package.version}}
expected-commit: cce5c88047815c45df8a52c8592e5890ae1b1949

- runs: |
# Build the backend common libs into a wheel
cd components/crud-web-apps/common/backend
python3 setup.py bdist_wheel
pip3 install . --prefix=/usr --root="${{targets.destdir}}"

# Build the frontend common packages
cd ../frontend/kubeflow-common-lib
npm ci
npm run build

# Build the frontend and copy the common package into it
cd ../../../volumes/frontend
npm ci
mv ../../common/frontend/kubeflow-common-lib/dist/kubeflow node_modules/

# This usually uses node 12, but it works with this.
export NODE_OPTIONS=--openssl-legacy-provider
npm run build -- --output-path=./dist/default --configuration=production

# Build the volumes backend
cd ../backend
pip3 install -r requirements.txt --prefix=/usr --root="${{targets.destdir}}"

# Now move it all into place
mkdir -p "${{targets.destdir}}/usr/share/kubeflow-volumes-web-app/"

# Move the backend
mv ../backend/apps "${{targets.destdir}}/usr/share/kubeflow-volumes-web-app/"
mv ../backend/entrypoint.py "${{targets.destdir}}/usr/share/kubeflow-volumes-web-app/"

# Move the frontend
mv ../frontend/dist/default "${{targets.destdir}}/usr/share/kubeflow-volumes-web-app/apps/default/static"

- uses: strip

update:
enabled: true
github:
identifier: kubeflow/kubeflow
use-tag: true
# There were some malformed early tags
tag-filter: v1
strip-prefix: v
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ cni-plugins
docker-credential-acr-env
flux-image-reflector-controller
kubeflow-jupyter-web-app
kubeflow-volumes-web-app
kaniko
flux-image-automation-controller
openai
Expand Down