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

update to new cli #2

Open
wants to merge 2 commits 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
160 changes: 95 additions & 65 deletions .domino/compiled_metadata.json
Original file line number Diff line number Diff line change
@@ -1,110 +1,140 @@
{
"ExampleSimplePiece": {
"name": "ExampleSimplePiece",
"ExampleSineWavePiece": {
"name": "ExampleSineWavePiece",
"dependency": {
"dockerfile": null,
"requirements_file": "requirements_0.txt"
"dockerfile": "Dockerfile_1",
"requirements_file": null
},
"tags": [
"Example"
],
"style": {
"node_label": "Simple Piece",
"node_label": "Example Sine Piece",
"node_type": "default",
"node_style": {
"backgroundColor": "#ebebeb"
},
"useIcon": true,
"icon_class_name": "fas fa-database",
"icon_class_name": "fa-solid:database",
"iconStyle": {
"cursor": "pointer"
}
},
"description": "This is an example of a simple Domino Piece",
"description": "This is an example of a piece that uses Dockerfile for dependencies.",
"container_resources": {
"requests": {
"cpu": "100m",
"memory": "128Mi"
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
"cpu": 500,
"memory": 512
}
},
"input_schema": {
"title": "InputModel",
"type": "object",
"description": "Sleep Piece Input Model",
"properties": {
"distribution_name": {
"description": "Name of the distribution to sample from",
"allOf": [
{
"$ref": "#/definitions/DistributionType"
}
]
"frequency": {
"default": 5,
"description": "Frequency of the sine wave in Hz",
"title": "Frequency",
"type": "integer"
},
"distribution_mean": {
"title": "Distribution Mean",
"description": "Distribution mean",
"type": "number"
"duration": {
"default": 1,
"description": "Duration of the sine wave signal in seconds",
"title": "Duration",
"type": "integer"
},
"distribution_sd": {
"title": "Distribution Sd",
"description": "Distribution standard deviation",
"default": 1.0,
"exclusiveMinimum": 0.0,
"type": "number"
"sample_rate": {
"default": 1000,
"description": "Sample rate of the sine wave signal.",
"title": "Sample Rate",
"type": "integer"
}
},
"required": [
"distribution_name",
"distribution_mean"
],
"definitions": {
"DistributionType": {
"title": "DistributionType",
"description": "An enumeration.",
"enum": [
"gaussian",
"poisson"
],
"type": "string"
}
}
"title": "InputModel",
"type": "object"
},
"output_schema": {
"title": "OutputModel",
"type": "object",
"description": "Sleep Piece Output Model",
"properties": {
"message": {
"description": "Sleep piece executed",
"title": "Message",
"description": "Output message to log",
"type": "string"
},
"sample_result": {
"title": "Sample Result",
"description": "The result of this Piece's processing",
"type": "string"
}
},
"required": [
"message",
"sample_result"
]
"message"
],
"title": "OutputModel",
"type": "object"
},
"secrets_schema": null,
"source_url": "https://github.com/Tauffer-Consulting/domino_pieces_repository_template/tree/main/pieces/ExampleSineWavePiece"
},
"ExampleSleepPiece": {
"name": "ExampleSleepPiece",
"dependency": {
"dockerfile": null,
"requirements_file": "requirements_0.txt"
},
"tags": [
"Example"
],
"style": {
"node_label": "Example Sleep Piece",
"node_type": "default",
"node_style": {
"backgroundColor": "#ebebeb"
},
"useIcon": true,
"icon_class_name": "fa-solid:database",
"iconStyle": {
"cursor": "pointer"
}
},
"description": "This is an example of a simple Domino Piece that sleep for N seconds",
"container_resources": {
"requests": {
"cpu": 100,
"memory": 128
},
"limits": {
"cpu": 500,
"memory": 512
}
},
"secrets_schema": {
"title": "SecretsModel",
"type": "object",
"input_schema": {
"description": "Sleep Piece Input Model",
"properties": {
"EXAMPLE_OPERATOR_SECRET_1": {
"title": "Example Operator Secret 1",
"description": "A secret necessary to run this Piece",
"sleep_time": {
"default": 1,
"description": "Number of seconds to sleep",
"title": "Sleep Time",
"type": "number"
}
},
"title": "InputModel",
"type": "object"
},
"output_schema": {
"description": "Sleep Piece Output Model",
"properties": {
"message": {
"description": "Sleep piece executed",
"title": "Message",
"type": "string"
}
},
"required": [
"EXAMPLE_OPERATOR_SECRET_1"
]
}
"message"
],
"title": "OutputModel",
"type": "object"
},
"secrets_schema": null,
"source_url": "https://github.com/Tauffer-Consulting/domino_pieces_repository_template/tree/main/pieces/ExampleSleepPiece"
}
}
19 changes: 14 additions & 5 deletions .domino/dependencies_map.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"group0": {
"dependency": {
"dockerfile": "Dockerfile_1",
"requirements_file": null
},
"pieces": [
"ExampleSineWavePiece"
],
"secrets": [],
"source_image": "ghcr.io/enter-your-registry-name-here/enter-your-repository-name-here:development-group0"
},
"group1": {
"dependency": {
"dockerfile": null,
"requirements_file": "requirements_0.txt"
},
"pieces": [
"ExampleSimplePiece"
],
"secrets": [
"EXAMPLE_OPERATOR_SECRET_1"
"ExampleSleepPiece"
],
"source_image": "ghcr.io/enter-your-registry-name-here/enter-your-repository-name-here:0.1.0-group0"
"secrets": [],
"source_image": "ghcr.io/enter-your-registry-name-here/enter-your-repository-name-here:development-group1"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/validate-and-organize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Run organize and build images
run: |
domino piece organize --build-images --source-url=https://github.com/${{github.repository}}
domino piece-repository organize --build-images --source-url=https://github.com/${{github.repository}}

- name: Install Tests Dependencies
run: pip install -r requirements-tests.txt
Expand Down