Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Last active Feb 3, 2019
Embed
What would you like to do?

Firstly, build the Docker image:

curl https://gist.githubusercontent.com/toolmantim/c731730b4b4b7989f8f045956346bcfe/raw/Dockerfile | docker build -t bk -

Then try to use it in a project that has a buildkite pipeline.yml file:

docker run -it --rm -v "$(PWD):/app" bk run local
FROM buildkite/agent:ubuntu
ADD https://github.com/buildkite/cli/releases/download/v0.2.0/bk-linux-amd64-0.2.0 /usr/bin/bk
RUN chmod +x /usr/bin/bk
WORKDIR /app
ENTRYPOINT ["bk"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment