buildkite / buildkite/golang-docker-example

docker-compose.yml tries to mount a volume for the agent without regard to its actual location

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
19
Forks
16
PR merge metrics
No merged PRs in 30d

Description

System info:
macOS 10.14
Docker Desktop

Steps to reproduce:

1. Install `buildkite-agent` on macOS
2. Click the 'Add to Buildkite' link on this repo
3. Trigger a build

Expected result:
Build succeeds!

Actual result:
```
$ docker-compose -f docker-compose.yml -p buildkite579c76232f884d959ce27d837d87596d run --name buildkite579c76232f884d959ce27d837d87596d_app_build_3 --rm app /bin/sh -e -c ./scripts/test.sh
--
  | Error response from daemon: Mounts denied:
  | The path /usr/bin/buildkite-agent
  | is not shared from OS X and is not known to Docker.

```

The macOS install of the agent is not in the folder `/usr/bin/`, nor does it seem like the mount is actually required for this demo to work; I removed it from the YAML and the pipeline still runs fine.

Would you like a PR with this change? https://github.com/cailyoung/golang-docker-example/commit/77bafde28ca435a7a46cd84aa5cfe2ed4dfb5428

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with docker-compose.yml and inspect the app service's mount for /usr/bin/buildkite-agent, then compare it with the macOS reproduction in the issue. Run scripts/test.sh through the documented docker-compose command; done means the pipeline runs without the Mounts denied error and the agent mount is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
build-system, devops
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.