|
76 | 76 | "id": "95c0cc88-4611-4903-a661-10a80fc60f2e",
|
77 | 77 | "metadata": {},
|
78 | 78 | "source": [
|
79 |
| - "### Print Unity Configuration" |
| 79 | + "### Print Unity Configuration\n", |
| 80 | + "If needed you can print the Unity configuration for debugging purposes." |
80 | 81 | ]
|
81 | 82 | },
|
82 | 83 | {
|
|
120 | 121 | "cell_type": "markdown",
|
121 | 122 | "id": "59a80d9c-6a9a-4612-bda5-39eaf64bf8e9",
|
122 | 123 | "metadata": {
|
| 124 | + "jp-MarkdownHeadingCollapsed": true, |
123 | 125 | "tags": []
|
124 | 126 | },
|
125 | 127 | "source": [
|
|
150 | 152 | "cell_type": "markdown",
|
151 | 153 | "id": "9e36a5fb-25ab-40ad-a9cb-ed2c06597cea",
|
152 | 154 | "metadata": {
|
| 155 | + "jp-MarkdownHeadingCollapsed": true, |
153 | 156 | "tags": []
|
154 | 157 | },
|
155 | 158 | "source": [
|
|
180 | 183 | "cell_type": "markdown",
|
181 | 184 | "id": "69d43073-3e99-4ea2-8021-9104b4003e84",
|
182 | 185 | "metadata": {
|
183 |
| - "jp-MarkdownHeadingCollapsed": true, |
184 | 186 | "tags": []
|
185 | 187 | },
|
186 | 188 | "source": [
|
187 | 189 | "## 4. Deploy application\n",
|
188 | 190 | "\n",
|
189 |
| - "Now that we have collected the information about the application from Dockstore, we can package it up and prep it for deployment to Unity's Science Processing Service.\n", |
| 191 | + "Now that we have collected the information about the application from Dockstore, we can package it up and prep it for deployment to Unity's Science Processing Service." |
| 192 | + ] |
| 193 | + }, |
| 194 | + { |
| 195 | + "cell_type": "code", |
| 196 | + "execution_count": null, |
| 197 | + "id": "5ca73600-08ff-49ff-8a7c-eed9099df872", |
| 198 | + "metadata": {}, |
| 199 | + "outputs": [], |
| 200 | + "source": [ |
| 201 | + "data = {\n", |
| 202 | + " \"processDescription\":{\n", |
| 203 | + " \"process\":{\n", |
| 204 | + " \"id\":\"l1b-cwl\",\n", |
| 205 | + " \"title\":\"l1b_pge_cwl\",\n", |
| 206 | + " \"owsContext\":{\n", |
| 207 | + " \"offering\":{\n", |
| 208 | + " \"code\":\"http://www.opengis.net/eoc/applicationContext/cwl\",\n", |
| 209 | + " \"content\":{\n", |
| 210 | + " \"href\":\"https://raw.githubusercontent.com/unity-sds/unity-sps-workflows/main/sounder_sips/ssips_L1b_workflow.cwl\"\n", |
| 211 | + " }\n", |
| 212 | + " }\n", |
| 213 | + " },\n", |
| 214 | + " \"abstract\":\"l1b_pge_cwl\",\n", |
| 215 | + " \"keywords\":[\n", |
| 216 | + " ],\n", |
| 217 | + " \"inputs\":[\n", |
| 218 | + " {\n", |
| 219 | + " \"id\":\"input_collection_id\",\n", |
| 220 | + " \"title\":\"input_collection_id\",\n", |
| 221 | + " \"formats\":[\n", |
| 222 | + " {\n", |
| 223 | + " \"mimeType\":\"text\",\n", |
| 224 | + " \"default\":True\n", |
| 225 | + " }\n", |
| 226 | + " ]\n", |
| 227 | + " },\n", |
| 228 | + " {\n", |
| 229 | + " \"id\":\"start_datetime\",\n", |
| 230 | + " \"title\":\"start_datetime\",\n", |
| 231 | + " \"formats\":[\n", |
| 232 | + " {\n", |
| 233 | + " \"mimeType\":\"text\",\n", |
| 234 | + " \"default\":True\n", |
| 235 | + " }\n", |
| 236 | + " ]\n", |
| 237 | + " },\n", |
| 238 | + " {\n", |
| 239 | + " \"id\":\"stop_datetime\",\n", |
| 240 | + " \"title\":\"stop_datetime\",\n", |
| 241 | + " \"formats\":[\n", |
| 242 | + " {\n", |
| 243 | + " \"mimeType\":\"text\",\n", |
| 244 | + " \"default\":True\n", |
| 245 | + " }\n", |
| 246 | + " ]\n", |
| 247 | + " },\n", |
| 248 | + " {\n", |
| 249 | + " \"id\": \"output_collection_id\",\n", |
| 250 | + " \"title\": \"output_collection_id\",\n", |
| 251 | + " \"formats\":[\n", |
| 252 | + " {\n", |
| 253 | + " \"mimeType\":\"text\",\n", |
| 254 | + " \"default\":True\n", |
| 255 | + " }\n", |
| 256 | + " ]\n", |
| 257 | + " }\n", |
| 258 | + " ],\n", |
| 259 | + " \"outputs\":[\n", |
| 260 | + " {\n", |
| 261 | + " \"id\":\"output\",\n", |
| 262 | + " \"title\":\"L1B-product\",\n", |
| 263 | + " \"formats\":[\n", |
| 264 | + " {\n", |
| 265 | + " \"mimeType\":\"image/tiff\",\n", |
| 266 | + " \"default\":True\n", |
| 267 | + " }\n", |
| 268 | + " ]\n", |
| 269 | + " }\n", |
| 270 | + " ]\n", |
| 271 | + " },\n", |
| 272 | + " \"processVersion\":\"develop\",\n", |
| 273 | + " \"jobControlOptions\":[\n", |
| 274 | + " \"async-execute\"\n", |
| 275 | + " ],\n", |
| 276 | + " \"outputTransmission\":[\n", |
| 277 | + " \"reference\"\n", |
| 278 | + " ]\n", |
| 279 | + " },\n", |
| 280 | + " \"immediateDeployment\":True,\n", |
| 281 | + " \"executionUnit\":[\n", |
| 282 | + " {\n", |
| 283 | + " \"href\":\"docker.registry/ndvims:latest\"\n", |
| 284 | + " }\n", |
| 285 | + " ],\n", |
| 286 | + " \"deploymentProfileName\":\"http://www.opengis.net/profiles/eoc/dockerizedApplication\"\n", |
| 287 | + "}\n", |
190 | 288 | "\n",
|
191 |
| - "Coming soon..." |
| 289 | + "process_service.deploy_process(data)" |
192 | 290 | ]
|
193 | 291 | },
|
194 | 292 | {
|
|
416 | 514 | "for job in jobs:\n",
|
417 | 515 | " print(job)"
|
418 | 516 | ]
|
| 517 | + }, |
| 518 | + { |
| 519 | + "cell_type": "code", |
| 520 | + "execution_count": null, |
| 521 | + "id": "59e8287c-3677-4b1e-8dd4-66b700bb8e66", |
| 522 | + "metadata": {}, |
| 523 | + "outputs": [], |
| 524 | + "source": [] |
419 | 525 | }
|
420 | 526 | ],
|
421 | 527 | "metadata": {
|
|
0 commit comments