skia2/infra/bots/recipe_modules/docker/examples/full.expected/test.json
Eric Boren 23f0b1512a [infra] Use CIPD packages from infra repo
Includes recipe hack because Kitchen introduced a directory level:
https://chromium-review.googlesource.com/c/infra/infra/+/1446288

Change-Id: I1afe43ea75964a2940e561f8d2bbfda3dd1f57e2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/255256
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
2019-11-20 14:02:48 +00:00

145 lines
2.7 KiB
JSON

[
{
"cmd": [],
"name": "Docker setup"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"/host-out"
],
"infra_step": true,
"name": "Docker setup.mkdirs out_dir",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"chmod",
"777",
"/host-out"
],
"infra_step": true,
"name": "Docker setup.chmod 777 /host-out",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"chmod",
"755",
"/host-src"
],
"infra_step": true,
"name": "Docker setup.chmod 755 /host-src",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"chmod",
"0755",
"./do-stuff.sh"
],
"infra_step": true,
"name": "Docker setup.chmod 0755 ./do-stuff.sh",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"/copy-dst"
],
"infra_step": true,
"name": "Docker setup.mkdirs /copy-dst",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"/copy-src/myfile",
"/copy-dst/myfile"
],
"infra_step": true,
"name": "Docker setup.cp /copy-src/myfile /copy-dst/myfile",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"chmod",
"644",
"/copy-dst/myfile"
],
"infra_step": true,
"name": "Docker setup.chmod 644 /copy-dst/myfile",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"chmod",
"-R",
"a+r",
"/host-src"
],
"infra_step": true,
"name": "Docker setup.chmod -R a+r /host-src",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"docker",
"run",
"--shm-size=2gb",
"--rm",
"--mount",
"type=bind,source=/host-src,target=/SRC",
"--mount",
"type=bind,source=/host-out,target=/OUT",
"--cpus",
"2",
"my.docker.image",
"/SRC/../do-stuff.sh",
"--key",
"value"
],
"env": {
"DOCKER_CONFIG": "/home/chrome-bot/.docker"
},
"name": "do Docker stuff"
},
{
"name": "$result"
}
]