You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-41Lines changed: 45 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,75 +90,66 @@ steps:
90
90
91
91
## Configuration
92
92
93
+
### Required
94
+
93
95
### `image` (required, string)
94
96
95
97
The name of the Docker image to use.
96
98
97
99
Example: `node:7`
98
100
99
-
### `workdir`(optional, string)
100
-
101
-
The working directory to run the command in, inside the container. The default is `/workdir`.
102
-
103
-
Example: `/app`
101
+
### Optional
104
102
105
-
### `mount-buildkite-agent` (optional, boolean)
103
+
### `additional-groups` (optional, array)
106
104
107
-
Whether to automatically mount the `buildkite-agent` binary from the host agent machine into the container. Set to `false` if you want to disable, or if you already have your own binary in the image.
105
+
Additional groups to be added to the user in the container, in an array of group names (or ids). See https://docs.docker.com/engine/reference/run/#additional-groups for more details.
108
106
109
-
Default: `true`for Linux, and `false` for macOS and Windows.
107
+
Example: `docker`
110
108
111
-
### `volumes` (optional, array or boolean)
109
+
### `always-pull` (optional, boolean)
112
110
113
-
Extra volume mounts to pass to the docker container, in an array. Items are specified as `SOURCE:TARGET`. Each entry corresponds to a Docker CLI `--volume` parameter. Relative local paths are converted to their full-path (e.g `.:/app`).
111
+
Whether to always pull the latest image before running the command. Useful if the image has a `latest` tag.
114
112
115
-
To disable the default mount mounts, set `volumes` to `false`.
Sets the command for the Docker image, and defaults the `shell` option to `false`. Useful if the Docker image has an entrypoint, or doesn't contain a shell.
121
118
122
-
Whether to always pull the latest image before running the command. Useful if the image has a `latest` tag.
119
+
This option can't be used if your step already has a top-level, non-plugin `command` option present.
An array of additional environment variables to pass into to the docker container. Items can be specified as either `KEY` or `KEY=value`. Each entry corresponds to a Docker CLI `--env` parameter. Values specified as variable names will be passed through from the outer environment.
125
+
Enables debug mode, which outputs the full Docker commands that will be run on the agent machine.
If set to false, doesn't allocate a TTY. This is useful in some situations where TTY's aren't supported, for instance windows.
131
+
Override the image’s default entrypoint, and defaults the `shell` option to `false`. See the [docker run --entrypoint documentation](https://docs.docker.com/engine/reference/run/#entrypoint-default-command-to-execute-at-runtime) for more details.
135
132
136
-
Default: `true`for Linux and macOS, and `false` for Windows.
133
+
Example: `/my/custom/entrypoint.sh`
137
134
138
-
### `user` (optional, string)
135
+
### `environment` (optional, array)
139
136
140
-
Allows a user to be set, and override the USER entry in the Dockerfile. See https://docs.docker.com/engine/reference/run/#user for more details.
137
+
An array of additional environment variables to pass into to the docker container. Items can be specified as either `KEY` or `KEY=value`. Each entry corresponds to a Docker CLI `--env` parameter. Values specified as variable names will be passed through from the outer environment.
Additional groups to be added to the user in the container, in an array of group names (or ids). See https://docs.docker.com/engine/reference/run/#additional-groups for more details.
143
+
Whether to automatically mount the `buildkite-agent` binary from the host agent machine into the container. Set to `false` if you want to disable, or if you already have your own binary in the image.
147
144
148
-
Example: `docker`
145
+
Default: `true`for Linux, and `false` for macOS and Windows.
149
146
150
147
### `network` (optional, string)
151
148
152
149
Join the container to the docker network specified. The network will be created if it does not already exist. See https://docs.docker.com/engine/reference/run/#network-settings for more details.
153
150
154
151
Example: `test-network`
155
152
156
-
### `debug` (optional, boolean)
157
-
158
-
Enables debug mode, which outputs the full Docker commands that will be run on the agent machine.
159
-
160
-
Default: `false`
161
-
162
153
### `runtime` (optional, string)
163
154
164
155
Specify an explicit docker runtime. See the [docker run options documentation](https://docs.docker.com/engine/reference/commandline/run/#options) for more details.
@@ -171,19 +162,32 @@ Set the shell to use for the command. Set it to `false` to pass the command dire
171
162
172
163
Example: `[ "powershell", "-Command" ]`
173
164
174
-
### `entrypoint` (optional, string)
165
+
### `tty` (optional, boolean)
175
166
176
-
Override the image’s default entrypoint, and defaults the `shell` option to `false`. See the [docker run --entrypoint documentation](https://docs.docker.com/engine/reference/run/#entrypoint-default-command-to-execute-at-runtime) for more details.
167
+
If set to false, doesn't allocate a TTY. This is useful in some situations where TTY's aren't supported, for instance windows.
177
168
178
-
Example: `/my/custom/entrypoint.sh`
169
+
Default: `true`for Linux and macOS, and `false` for Windows.
179
170
180
-
### `command` (optional, array)
171
+
### `user` (optional, string)
181
172
182
-
Sets the command for the Docker image, and defaults the `shell` option to `false`. Useful if the Docker image has an entrypoint, or doesn't contain a shell.
173
+
Allows a user to be set, and override the USER entry in the Dockerfile. See https://docs.docker.com/engine/reference/run/#user for more details.
183
174
184
-
This option can't be used if your step already has a top-level, non-plugin `command` option present.
Extra volume mounts to pass to the docker container, in an array. Items are specified as `SOURCE:TARGET`. Each entry corresponds to a Docker CLI `--volume` parameter. Relative local paths are converted to their full-path (e.g `.:/app`).
180
+
181
+
To disable the default mount mounts, set `volumes` to `false`.
0 commit comments