Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Last active February 3, 2019 10:45
Show Gist options
  • 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