Skip to content

Commit

Permalink
Update metadata writer to v2.2.0 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
misohu committed Jun 10, 2024
1 parent d65cd0c commit cff3205
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions metadata-writer/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Dockerfile: https://github.com/kubeflow/pipelines/blob/2.0.5/backend/metadata_writer/Dockerfile
# Based on: https://github.com/kubeflow/pipelines/blob/2.2.0/backend/metadata_writer/Dockerfile
name: metadata-writer
summary: Reusable end-to-end ML workflows built using the Kubeflow Pipelines SDK
description: |
This service logs the metadata for KFP components and pipelines.
version: 2.0.5
version: "2.2.0"
license: Apache-2.0
base: [email protected]
run-user: _daemon_
services:
controller:
override: replace
summary: "Entry point for kfp-metadata-writer oci-image"
command: python3 -u /kfp/metadata_writer/metadata_writer.py
startup: enabled
command: "python3 -u /kfp/metadata_writer/metadata_writer.py"
platforms:
amd64:

Expand All @@ -22,11 +22,19 @@ package-repositories:
priority: always

parts:
security-team-requirement:
plugin: nil
override-build: |
mkdir -p ${CRAFT_PART_INSTALL}/usr/share/rocks
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && \
dpkg-query --root=${CRAFT_PROJECT_DIR}/../bundles/ubuntu-22.04/rootfs/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query
python:
plugin: python
source: https://github.com/kubeflow/pipelines.git
source-subdir: backend/metadata_writer
source-tag: 2.0.5
source-tag: 2.2.0
stage-packages:
# sync this python version to the base image in the Dockerfile.
# Also keep this in sync with PARTS_PYTHON_INTERPRETER below.
Expand All @@ -47,13 +55,7 @@ parts:
copy-files:
plugin: nil
source: https://github.com/kubeflow/pipelines.git
source-tag: 2.0.5
source-tag: 2.2.0
override-build: |
mkdir -p ${CRAFT_PART_INSTALL}/kfp/metadata_writer/
cp ${CRAFT_PART_SRC}/backend/metadata_writer/src/* ${CRAFT_PART_INSTALL}/kfp/metadata_writer
security-team-requirement:
plugin: nil
override-build: |
mkdir -p ${CRAFT_PART_INSTALL}/usr/share/rocks
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query

0 comments on commit cff3205

Please sign in to comment.