Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Last active February 3, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toolmantim/c731730b4b4b7989f8f045956346bcfe to your computer and use it in GitHub Desktop.
Save toolmantim/c731730b4b4b7989f8f045956346bcfe to your computer and use it in GitHub Desktop.

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