-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.rancher-pipeline.yml
More file actions
47 lines (45 loc) · 1.84 KB
/
.rancher-pipeline.yml
File metadata and controls
47 lines (45 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
stages:
- name: Setup Orchestrator
steps:
- runScriptConfig:
image: python:latest
shellScript: curl -X DELETE http://ai-orchestrator.ai-orchestrator/api/template/iris
- runScriptConfig:
image: python:latest
shellScript: |-
file="$(pwd)"
gitjson='{"name":"iris","description":"iris","backendtype":"kubeflow" }'
curl -i -X POST -H "Content-Type: multipart/form-data" -F "template=@$file/ml/kubeflow/classification_v1.py" \
-F data="$gitjson" \
-X POST http://ai-orchestrator.ai-orchestrator/api/template
- runScriptConfig:
image: python:latest
shellScript: |-
gitjson='{"type":"kubegit","name":"DEMO IRIS","description":"Demo", "outputdirectory": "models","image": {"name":"gsantomaggio/sklearn","execparameters":""},"git": {"url":"https://github.com/Gsantomaggio/k8s"}}'
curl -i -X POST -H "Content-Type: multipart/form-data"\
-F data="$gitjson" \
-X POST http://ai-orchestrator.ai-orchestrator/api/pipe/upload
sleep 3
- name: Run PIPE Line to KF
steps:
- runScriptConfig:
image: python:latest
shellScript: |
gitjson='{"backendname":"Kubeflow","name":"DEMO IRIS","description":"Description","template":"iris" }'
curl --header "Content-Type: application/json" \
--data "$gitjson" \
-X POST http://ai-orchestrator.ai-orchestrator/api/pipe/run
- name: Run in AWS
steps:
- runScriptConfig:
image: python:latest
shellScript: |-
gitjson='{"backendname":"kubeflowAWS","name":"DEMO IRIS","description":"Description","template":"iris" }'
curl --header "Content-Type: application/json" \
--data "$gitjson" \
-X POST http://ai-orchestrator.ai-orchestrator/api/pipe/run
timeout: 60
branch:
include:
- wip
notification: {}