Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds katlib-darts-rock #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore built rocks
*.rock
7 changes: 7 additions & 0 deletions darts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Kitelib Darts Rock

Rock for Kubeflow katlib-darts service.

**Note:** The upstream dockerfile supports `ppc64le` architecture, currently we only support `amd64`.

Dockerfile: https://github.com/kubeflow/katib/blob/master/cmd/suggestion/nas/darts/v1beta1/Dockerfile
62 changes: 62 additions & 0 deletions darts/rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: katib-darts-rock
title: Katib Darts Rock
summary: A Katib Dart Rock
description: |
Darts Suggestion Service.
For more information, please visit: https://github.com/kubeflow/katib
version: "beta"
base: ubuntu:22.04
license: Apache-2.0
platforms:
amd64:
build-on: ["amd64"]
# TODO: Official also supports `ppc64le` architecture, currently we only support `amd64`.
# For more information, please check: https://github.com/kubeflow/katib/blob/master/cmd/suggestion/nas/darts/v1beta1/Dockerfile

services:
katlib-darts:
override: replace
command: python main.py
startup: enabled
environment:
# TODO: Probably these envs are not being used and can be removed.
PYTHONPATH: /opt/katib:/opt/katib/pkg/apis/manager/v1beta1/python:/opt/katib/pkg/apis/manager/health/python
TARGET_DIR: /opt/katib
SUGGESTION_DIR: cmd/suggestion/nas/darts/v1beta1

parts:
pkg:
plugin: dump
source: https://github.com/kubeflow/katib.git
source-type: git
source-subdir: pkg
organize:
"*": opt/katib/pkg/
stage:
- -opt/katib/pkg/

dart-pyton-packages:
plugin: python
source: https://github.com/kubeflow/katib.git
source-subdir: cmd/suggestion/nas/darts/v1beta1
python-requirements: ["requirements.txt"]

grpc-health-probe:
plugin: dump
source: https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.15/grpc_health_probe-linux-amd64
source-type: file
organize:
grpc_health_probe-linux-amd64: bin/grpc_health_probe
stage:
- bin/grpc_health_probe

entrypoint:
plugin: dump
source: https://github.com/kubeflow/katib.git
source-subdir: cmd/earlystopping/medianstop/v1beta1
source-type: git
source-tag: master
organize:
main.py: usr/bin/main.py
stage:
- usr/bin/main.py