Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Last active February 3, 2019 10:45
Show Gist options
  • Select an option

  • Save toolmantim/c731730b4b4b7989f8f045956346bcfe to your computer and use it in GitHub Desktop.

Select an option

Save toolmantim/c731730b4b4b7989f8f045956346bcfe to your computer and use it in GitHub Desktop.

Revisions

  1. toolmantim revised this gist Feb 3, 2019. 2 changed files with 2 additions and 6 deletions.
    6 changes: 1 addition & 5 deletions 0-Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,7 @@
    Firstly, build the Docker image:

    ```bash
    pushd /tmp
    git clone https://gist.github.com/c731730b4b4b7989f8f045956346bcfe.git bk-run
    cd bk-run
    docker build -t bk .
    popd
    curl https://gist.github.com/toolmantim/c731730b4b4b7989f8f045956346bcfe/raw/Dockerfile | docker build -t bk -
    ```

    Then try to use it in a project that has a buildkite pipeline.yml file:
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    FROM buildkite/agent
    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
  2. toolmantim revised this gist Feb 3, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    FROM buildkite/agent:ubuntu
    FROM buildkite/agent

    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
  3. toolmantim revised this gist Feb 3, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    FROM buildkite/agent
    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
  4. toolmantim revised this gist Feb 3, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 0-Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Firstly, build the Docker image:

    ```
    ```bash
    pushd /tmp
    git clone https://gist.github.com/c731730b4b4b7989f8f045956346bcfe.git bk-run
    cd bk-run
    @@ -10,6 +10,6 @@ popd

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

    ```
    ```bash
    docker run -it --rm -v "$(PWD):/app" bk run local
    ```
  5. toolmantim revised this gist Feb 3, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion 0-Readme.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,5 @@ popd
    Then try to use it in a project that has a buildkite pipeline.yml file:

    ```
    cd ~/app
    docker run -it --rm -v "$(PWD):/app" bk run local
    ```
  6. toolmantim revised this gist Feb 3, 2019. 2 changed files with 18 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion 0-Readme.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,16 @@
    # Example
    Firstly, build the Docker image:

    ```
    pushd /tmp
    git clone https://gist.github.com/c731730b4b4b7989f8f045956346bcfe.git bk-run
    cd bk-run
    docker build -t bk .
    popd
    ```

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

    ```
    cd ~/app
    docker run -it --rm -v "$(PWD):/app" bk run local
    ```
    2 changes: 2 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,6 @@ FROM buildkite/agent
    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"]
  7. toolmantim renamed this gist Feb 3, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. toolmantim created this gist Feb 3, 2019.
    1 change: 1 addition & 0 deletions 0-Readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # Example
    6 changes: 6 additions & 0 deletions Dockerfiles
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    FROM buildkite/agent

    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

    ENTRYPOINT ["bk"]