GNU/Linux ◆ xterm-256color ◆ bash 425 views

module.wf

{
	"name": "example-module"
}

plot.wf

{
	"inputs": {
		"rootfs": "catalog:alpinelinux.org/alpine:v3.14.2:x86_64"
	},
	"steps": {
		"hello-world": {
			"protoformula": {
				"inputs": {
					"/": "pipe::rootfs"
				},
				"action": {
					"script": {
						"interpreter": "/bin/sh",
						"contents": [
							"mkdir /output",
							"echo 'hello world' | tee /output/file"
						],
						"network": false
					}
				},
				"outputs": {
					"out": {
						"from": "/output",
						"packtype": "tar"
					}
				}
			}
		}
	},
	"outputs": {
		"output": "pipe:hello-world:out"
	}
}