{ "files": { "examples": { "python": { "/": "directory" } } }, "images": [ { "importType": "layer", "image": { "imageType": "docker", "name": "python", "tag": "3.10-slim" }, "resultVar": "python-layers" } ], "timelines": [ { "resultVar": "primary", "steps": [ { "stepType": "apply", "layers": "python-layers" }, { "stepType": "files", "files": [ { "from": "examples/python/generator.py", "to": "generator.py", "fileType": "copy-file" } ] }, { "stepType": "run", "spec": { "version": "1.0.0", "process": { "args": ["python3.10", "/generator.py"], "env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ] } } }, { "stepType": "snapshot-changeset", "var": "output", "mediaType": "application/vnd.oci.image.layer.v1.tar" } ] }, { "resultVar": "export", "steps": [ { "stepType": "import-objects", "path": "layers.json", "objects": [ { "objectType": "layer", "var": "python-layers" }, { "objectType": "changeset", "var": "output" } ] }, { "stepType": "apply", "layers": "python-layers" }, { "stepType": "files", "files": [ { "from": "examples/python/manifest.py", "to": "manifest.py", "fileType": "copy-file" } ] }, { "stepType": "run", "spec": { "version": "1.0.0", "process": { "args": ["python3.10", "/manifest.py"], "env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ] } } }, { "stepType": "snapshot-files", "files": [ { "from": "oci-config.json", "fileType": "blob", "media": "application/vnd.oci.image.config.v1+json", "hash": "sha256" } ] }, { "stepType": "export-image", "image": { "indexType": "application/vnd.oci.image.index.v1+json", "manifests": ["manifest.json"], "annotations": {}, "path": "target/export", "name": "oci-basis" } } ] } ] }