Create a Generic Artifact
Prerequisites
Quick Start
mkdir my-generic-package cd my-generic-package{ "name": "my-generic-package", "version": "0.1.0", "description": "Custom executor package", "native": { "type": "generic", "path": "./src", "image": "python:3.11-slim", "command": ["python"], "args": ["/workspace/scripts/my_script.py"] }, "props": { "input_param": { "type": "string", "description": "Input parameter" } }, "outs": { "job_id": { "type": "string", "description": "Job ID of the generic package job" }, "result": { "type": "string", "description": "Execution result" } } }# src/scripts/my_script.py import json # Read inputs with open('/workspace/vars.json', 'r') as f: vars = json.load(f) # Your custom logic here result = f"Processed: {vars['input_param']}" # Write outputs with open('/workspace/outputs.json', 'w') as f: json.dump({'result': result}, f)bricks run . --dry --props-file properties.json bricks run . --apply --props-file properties.json
When to Use Generic Artifacts
How It Works
See also
Last updated
Was this helpful?

