Skip to content

Instantly share code, notes, and snippets.

@asford
Created July 3, 2018 23:45
Show Gist options
  • Save asford/fc72f7450d2ae464863d6fa98d14b7d0 to your computer and use it in GitHub Desktop.
Save asford/fc72f7450d2ae464863d6fa98d14b7d0 to your computer and use it in GitHub Desktop.
docker-compose v3 data containers for buildkite
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
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:
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