Created
July 3, 2018 23:45
-
-
Save asford/fc72f7450d2ae464863d6fa98d14b7d0 to your computer and use it in GitHub Desktop.
docker-compose v3 data containers for buildkite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.7 | |
RUN apk add --no-cache \ | |
bash \ | |
curl | |
RUN mkdir -p /buildkite/bin | |
RUN curl -L https://github.com/buildkite/agent/releases/download/v3.2.0/buildkite-agent-linux-amd64-3.2.0.tar.gz | \ | |
tar -xz -C /usr/local/bin ./buildkite-agent && \ | |
chmod +x /usr/local/bin/buildkite-agent && \ | |
cp /usr/local/bin/buildkite-agent /buildkite/bin | |
VOLUME /buildkite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
test: | |
volumes: | |
- buildkite-bin:/buildkite/bin | |
depends_on: | |
- buildkite-bin | |
buildkite-bin: | |
build: | |
context: . | |
dockerfile: buildkite-agent.Dockerfile | |
volumes: | |
- buildkite-bin:/buildkite/bin | |
volumes: | |
buildkite-bin: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
test: | |
image: ubuntu:latest | |
entrypoint: /buildkite/bin/buildkite-agent --help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment