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

plot.wf

{
	"inputs": {
		"rootfs": "catalog:alpinelinux.org/alpine:v3.14.2:x86_64"
		"gawk": "catalog:gnu.org/gawk:5.1.1:x86_64",
		"data": "catalog:datasets.warpforge.org/demo/cities:v1.0:csv"
	},
	"steps": {
		"awk-test": {
			"protoformula": {
				"inputs": {
					"/": "pipe::rootfs"
					"/tools/gawk": "pipe::gawk"
					"/data": "pipe::data"
				},
				"action": {
					"script": {
						"interpreter": "/bin/sh",
						"contents": [
							"mkdir /out",
							"/tools/gawk/gawk -F ',' '{print $9 $10}' /data/data/cities.csv > /out/report.txt",
						],
						"network": false
					}
				},
				"outputs": {
					"out": {
						"from": "/out",
						"packtype": "tar"
					}
				}
			}
		}
	},
	"outputs": {
		"output": "pipe:awk-test:out"
	}
}