Last active
April 15, 2018 11:05
-
-
Save lox/1ae22f46cc2c40ca8714b8e0b959f0a3 to your computer and use it in GitHub Desktop.
Docker and Docker-Compose Example Pipelines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.2" | |
| services: | |
| app: | |
| build: . | |
| volumes: | |
| - ".:/app" | |
| working_dir: /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps: | |
| - name: "Info" | |
| command: | |
| - mount | |
| - pwd | |
| - docker info | |
| - docker volume list | |
| - which docker | |
| - ls -al | |
| - name: "on host" | |
| command: "/bin/sh ./test.sh" | |
| - name: ":docker: docker-compose test" | |
| command: "/bin/sh ./test.sh" | |
| plugins: | |
| docker-compose#v2.0.0: | |
| run: app | |
| - name: ":docker: docker test" | |
| command: "/bin/sh ./test.sh" | |
| plugins: | |
| docker#v1.1.1: | |
| debug: true | |
| image: "ubuntu:latest" | |
| workdir: /app | |
| mount-buildkite-agent: false | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo hello world |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My kubernetes manifest is: