-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyopenshiftblog_pipeline.yaml
More file actions
165 lines (157 loc) · 6.92 KB
/
Copy pathmyopenshiftblog_pipeline.yaml
File metadata and controls
165 lines (157 loc) · 6.92 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# PIPELINE DEFINITION
# Name: untitled1
components:
comp-run-a-file:
executorLabel: exec-run-a-file
comp-run-a-file-2:
executorLabel: exec-run-a-file-2
deploymentSpec:
executors:
exec-run-a-file:
container:
args:
- 'sh -c "mkdir -p ./jupyter-work-dir && cd ./jupyter-work-dir"
sh -c "[[ -e ''/opt/app-root/bin/utils/bootstrapper.py'' ]] && (echo ''bootstrapper.py
file already exists''; cp ''/opt/app-root/bin/utils/bootstrapper.py'' .)
|| (echo ''Downloading https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/elyra/kfp/bootstrapper.py'';
curl --fail -H ''Cache-Control: no-cache'' -L ''https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/elyra/kfp/bootstrapper.py''
--output bootstrapper.py)"
sh -c "[[ -e ''/opt/app-root/bin/utils/requirements-elyra.txt'' ]] && (echo
''requirements-elyra.txt file already exists''; cp ''/opt/app-root/bin/utils/requirements-elyra.txt''
.) || (echo ''Downloading https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/etc/generic/requirements-elyra.txt'';
curl --fail -H ''Cache-Control: no-cache'' -L ''https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/etc/generic/requirements-elyra.txt''
--output requirements-elyra.txt)"
sh -c "python3 -m pip install packaging && python3 -m pip freeze > requirements-current.txt
&& python3 bootstrapper.py --pipeline-name ''untitled1'' --cos-endpoint
''https://s3.openshift-storage.svc:443'' --cos-bucket ''pipeline-75424b26-5b46-4696-97bd-df2e75af8e01''
--cos-directory ''untitled1-0721194240'' --cos-dependencies-archive ''1_load_event_data-c94ae9cc-f28d-4311-a570-93988d436243.tar.gz''
--file ''rhoai-demos/1_load_event_data.ipynb'' "
'
command:
- sh
- -c
env:
- name: ELYRA_RUNTIME_ENV
value: kfp
- name: ELYRA_ENABLE_PIPELINE_INFO
value: 'True'
- name: ELYRA_WRITABLE_CONTAINER_DIR
value: /tmp
- name: ELYRA_RUN_NAME
value: '{{workflow.uid}}'
image: quay.io/modh/odh-pipeline-runtime-datascience-cpu-py311-ubi9@sha256:58b260c5828299014802bf3fcd0004a97a949fdbfcee82057190e94a2ef16562
exec-run-a-file-2:
container:
args:
- 'sh -c "mkdir -p ./jupyter-work-dir && cd ./jupyter-work-dir"
sh -c "[[ -e ''/opt/app-root/bin/utils/bootstrapper.py'' ]] && (echo ''bootstrapper.py
file already exists''; cp ''/opt/app-root/bin/utils/bootstrapper.py'' .)
|| (echo ''Downloading https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/elyra/kfp/bootstrapper.py'';
curl --fail -H ''Cache-Control: no-cache'' -L ''https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/elyra/kfp/bootstrapper.py''
--output bootstrapper.py)"
sh -c "[[ -e ''/opt/app-root/bin/utils/requirements-elyra.txt'' ]] && (echo
''requirements-elyra.txt file already exists''; cp ''/opt/app-root/bin/utils/requirements-elyra.txt''
.) || (echo ''Downloading https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/etc/generic/requirements-elyra.txt'';
curl --fail -H ''Cache-Control: no-cache'' -L ''https://raw.githubusercontent.com/opendatahub-io/elyra/v4.2.1/etc/generic/requirements-elyra.txt''
--output requirements-elyra.txt)"
sh -c "python3 -m pip install packaging && python3 -m pip freeze > requirements-current.txt
&& python3 bootstrapper.py --pipeline-name ''untitled1'' --cos-endpoint
''https://s3.openshift-storage.svc:443'' --cos-bucket ''pipeline-75424b26-5b46-4696-97bd-df2e75af8e01''
--cos-directory ''untitled1-0721194240'' --cos-dependencies-archive ''2_rest_of_steps-19404316-2412-4dde-994e-8c8595b2bf0b.tar.gz''
--file ''rhoai-demos/2_rest_of_steps.ipynb'' "
'
command:
- sh
- -c
env:
- name: ELYRA_RUNTIME_ENV
value: kfp
- name: ELYRA_ENABLE_PIPELINE_INFO
value: 'True'
- name: ELYRA_WRITABLE_CONTAINER_DIR
value: /tmp
- name: ELYRA_RUN_NAME
value: '{{workflow.uid}}'
image: quay.io/modh/odh-pipeline-runtime-datascience-cpu-py311-ubi9@sha256:58b260c5828299014802bf3fcd0004a97a949fdbfcee82057190e94a2ef16562
pipelineInfo:
name: untitled1
root:
dag:
tasks:
run-a-file:
cachingOptions:
enableCache: true
componentRef:
name: comp-run-a-file
taskInfo:
name: 1_load_event_data
run-a-file-2:
cachingOptions:
enableCache: true
componentRef:
name: comp-run-a-file-2
dependentTasks:
- run-a-file
taskInfo:
name: 2_rest_of_steps
schemaVersion: 2.1.0
sdkVersion: kfp-2.12.2
---
platforms:
kubernetes:
deploymentSpec:
executors:
exec-run-a-file:
podMetadata:
annotations:
elyra/node-file-name: rhoai-demos/1_load_event_data.ipynb
elyra/pipeline-source: untitled1.pipeline
labels:
elyra/experiment-name: ''
elyra/node-name: 1_load_event_data
elyra/node-type: notebook-script
elyra/pipeline-name: untitled1
elyra/pipeline-version: ''
pvcMount:
- constant: event-frequency-analysis-storage
mountPath: /data
pvcNameParameter:
runtimeValue:
constant: event-frequency-analysis-storage
secretAsEnv:
- keyToEnv:
- envVar: AWS_ACCESS_KEY_ID
secretKey: AWS_ACCESS_KEY_ID
- envVar: AWS_SECRET_ACCESS_KEY
secretKey: AWS_SECRET_ACCESS_KEY
secretName: dashboard-dspa-secret
secretNameParameter:
runtimeValue:
constant: dashboard-dspa-secret
exec-run-a-file-2:
podMetadata:
annotations:
elyra/node-file-name: rhoai-demos/2_rest_of_steps.ipynb
elyra/pipeline-source: untitled1.pipeline
labels:
elyra/experiment-name: ''
elyra/node-name: 2_rest_of_steps
elyra/node-type: notebook-script
elyra/pipeline-name: untitled1
elyra/pipeline-version: ''
pvcMount:
- constant: event-frequency-analysis-storage
mountPath: /data
pvcNameParameter:
runtimeValue:
constant: event-frequency-analysis-storage
secretAsEnv:
- keyToEnv:
- envVar: AWS_ACCESS_KEY_ID
secretKey: AWS_ACCESS_KEY_ID
- envVar: AWS_SECRET_ACCESS_KEY
secretKey: AWS_SECRET_ACCESS_KEY
secretName: dashboard-dspa-secret
secretNameParameter:
runtimeValue:
constant: dashboard-dspa-secret