Debian Codegraph @

infra/bots/recipe_modules/docker/examples/full.expected/test.json

raw
1 [
2 {
3 "cmd": [],
4 "name": "Docker setup"
5 },
6 {
7 "cmd": [
8 "python3",
9 "RECIPE_MODULE[skia::docker]/resources/get_uid_gid.py"
10 ],
11 "name": "Docker setup.Get uid and gid",
12 "~followup_annotations": [
13 "@@@STEP_NEST_LEVEL@1@@@"
14 ]
15 },
16 {
17 "cmd": [
18 "vpython3",
19 "-u",
20 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
21 "--json-output",
22 "/path/to/tmp/json",
23 "ensure-directory",
24 "--mode",
25 "0o777",
26 "/host-out"
27 ],
28 "infra_step": true,
29 "name": "Docker setup.mkdirs out_dir",
30 "~followup_annotations": [
31 "@@@STEP_NEST_LEVEL@1@@@"
32 ]
33 },
34 {
35 "cmd": [
36 "chmod",
37 "777",
38 "/host-out"
39 ],
40 "infra_step": true,
41 "name": "Docker setup.chmod 777 /host-out",
42 "~followup_annotations": [
43 "@@@STEP_NEST_LEVEL@1@@@"
44 ]
45 },
46 {
47 "cmd": [
48 "chmod",
49 "755",
50 "/host-src"
51 ],
52 "infra_step": true,
53 "name": "Docker setup.chmod 755 /host-src",
54 "~followup_annotations": [
55 "@@@STEP_NEST_LEVEL@1@@@"
56 ]
57 },
58 {
59 "cmd": [
60 "chmod",
61 "0755",
62 "./do-stuff.sh"
63 ],
64 "infra_step": true,
65 "name": "Docker setup.chmod 0755 ./do-stuff.sh",
66 "~followup_annotations": [
67 "@@@STEP_NEST_LEVEL@1@@@"
68 ]
69 },
70 {
71 "cmd": [
72 "vpython3",
73 "-u",
74 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
75 "--json-output",
76 "/path/to/tmp/json",
77 "ensure-directory",
78 "--mode",
79 "0o777",
80 "/copy-dst"
81 ],
82 "infra_step": true,
83 "name": "Docker setup.mkdirs /copy-dst",
84 "~followup_annotations": [
85 "@@@STEP_NEST_LEVEL@1@@@"
86 ]
87 },
88 {
89 "cmd": [
90 "vpython3",
91 "-u",
92 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
93 "--json-output",
94 "/path/to/tmp/json",
95 "copy",
96 "/copy-src/myfile",
97 "/copy-dst/myfile"
98 ],
99 "infra_step": true,
100 "name": "Docker setup.cp /copy-src/myfile /copy-dst/myfile",
101 "~followup_annotations": [
102 "@@@STEP_NEST_LEVEL@1@@@"
103 ]
104 },
105 {
106 "cmd": [
107 "chmod",
108 "644",
109 "/copy-dst/myfile"
110 ],
111 "infra_step": true,
112 "name": "Docker setup.chmod 644 /copy-dst/myfile",
113 "~followup_annotations": [
114 "@@@STEP_NEST_LEVEL@1@@@"
115 ]
116 },
117 {
118 "cmd": [
119 "chmod",
120 "-R",
121 "a+r",
122 "/host-src"
123 ],
124 "infra_step": true,
125 "name": "Docker setup.chmod -R a+r /host-src",
126 "~followup_annotations": [
127 "@@@STEP_NEST_LEVEL@1@@@"
128 ]
129 },
130 {
131 "cmd": [
132 "docker",
133 "run",
134 "--shm-size=2gb",
135 "--rm",
136 "--user",
137 "13:17",
138 "--mount",
139 "type=bind,source=/host-src,target=/SRC",
140 "--mount",
141 "type=bind,source=/host-out,target=/OUT",
142 "--cpus",
143 "2",
144 "-e",
145 "ENV_VAR=VALUE",
146 "my.docker.image",
147 "/SRC/../do-stuff.sh",
148 "--src",
149 "/SRC",
150 "--out",
151 "/OUT"
152 ],
153 "env": {
154 "CHROME_HEADLESS": "1",
155 "DOCKER_CONFIG": "/home/chrome-bot/.docker",
156 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
157 },
158 "name": "do Docker stuff"
159 },
160 {
161 "name": "$result"
162 }
163 ]