-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19 feat create pipeline client (#20)
* feat(pipelines.py): adding pipelines client * feat(pipelines.py): adding pipelines client
- Loading branch information
Showing
4 changed files
with
298 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: 1 | ||
name: example | ||
defaults: | ||
user: test | ||
site: local | ||
|
||
deployments: | ||
- name: test-deployment # Name is required | ||
site: canfar # Same valid sites as the work object | ||
image: test/test-image:latest #This is the container image | ||
resources: | ||
cores: 2 # Integer value of cores | ||
ram: 4G #1G, -- either MB or GB of RAMS | ||
gpu: 4 # Optional, int value for GPUs | ||
replicas: 1 #Int value | ||
|
||
pipeline: | ||
# Provision top-level | ||
steps: | ||
- name: alpha | ||
stage: 1 | ||
work: | ||
function: guidelines.example.alpha | ||
parameters: | ||
mu0: 100.1 | ||
sigma0: 22.0 | ||
- name: beta | ||
runs-on: test-deployment | ||
# Provision stage-level | ||
stage: 2 | ||
work: | ||
function: guidelines.example.beta | ||
parameters: | ||
mu0: 100.1 | ||
sigma0: 22.0 | ||
# Teardown stage-level | ||
- name: gamma | ||
stage: 3 | ||
work: | ||
function: guidelines.example.gamma | ||
parameters: | ||
mu0: 100.1 | ||
sigma0: 22.0 | ||
# Teardown of top-level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.