Skip to content

Commit

Permalink
Merge pull request #210 from buildkite-plugins/toote_dind_warning_iss…
Browse files Browse the repository at this point in the history
…ue_61

Docker Agent Warnings
  • Loading branch information
pzeballos authored Sep 20, 2022
2 parents 8428fd7 + d006412 commit 0ac0082
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
- command: "go build -o dist/my-app ."
artifact_paths: "./dist/my-app"
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "golang:1.11"
```
Expand All @@ -23,7 +23,7 @@ Windows images are also supported:
steps:
- command: "dotnet publish -c Release -o published"
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "microsoft/dotnet:latest"
always-pull: true
```
Expand All @@ -33,7 +33,7 @@ If you want to control how your command is passed to the docker container, you c
```yml
steps:
- plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "mesosphere/aws-cli"
always-pull: true
command: ["s3", "sync", "s3://my-bucket/dist/", "/app/dist"]
Expand All @@ -50,7 +50,7 @@ steps:
- "yarn install"
- "yarn run test"
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "node:7"
always-pull: true
environment:
Expand All @@ -70,7 +70,7 @@ steps:
env:
MY_SPECIAL_BUT_PUBLIC_VALUE: kittens
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "node:7"
always-pull: true
propagate-environment: true
Expand All @@ -86,7 +86,7 @@ steps:
env:
MY_SPECIAL_BUT_PUBLIC_VALUE: kittens
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "node:7"
always-pull: true
propagate-aws-auth-tokens: true
Expand All @@ -100,7 +100,7 @@ steps:
- "docker build . -t image:tag"
- "docker push image:tag"
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "docker:latest"
always-pull: true
volumes:
Expand All @@ -113,12 +113,16 @@ You can disable the default behaviour of mounting in the checkout to `workdir`:
steps:
- command: "npm start"
plugins:
- docker#v4.0.0:
- docker#v4.1.0:
image: "node:7"
always-pull: true
mount-checkout: false
```

### 🚨 Warning

You need to be careful when/if [running the BuildKite agent itself in docker](https://buildkite.com/docs/agent/v3/docker) that, itself, runs pipelines that use this plugin. Make sure to read all the documentation on the matter, specially the caveats and warnings listed.

## Configuration

### Required
Expand Down Expand Up @@ -229,6 +233,8 @@ Whether to automatically mount the ssh-agent socket from the host agent machine

Default: `false`

**Important**: note that for this to work you will need the agent itself to have access to an ssh agent that is: up and running, listening on the appropriate socket, with the appropriate credentials loaded (or to be loaded). Please refer to the [agent's documentation on using SSH agent](https://buildkite.com/docs/agent/v3/ssh-keys#using-multiple-keys-with-ssh-agent) for more information

### `network` (optional, string)

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.
Expand Down

0 comments on commit 0ac0082

Please sign in to comment.