Getting Started With Concourse on macOS

Getting Started With Concourse on macOS

 

Original Post:
https://medium.com/concourse-ci/getting-started-with-concourse-ci-on-macos-fb3a49a8e6b4

Dockers Machine vs Docker for Mac
https://stories.amazee.io/docker-on-mac-performance-docker-machine-vs-docker-for-mac-4c64c0afdf99

Concourse Github Repository:
https://github.com/concourse/concourse-docker

 

Linux:It uses linux kenrel


Windows/Mac: No Linux Kernel, Docker starts a virtual machine with a small Linux installed and runs Docker containers in there. File system mounts are also not possible natively and need a helper-system in between, which both Docker and Cachalot provide.

Docker Machine:
A set of CLI tools that start a boot2docker virtual machine inside a provided hypervisor (like VirtualBox, Parallels, and VMWare).

Cachalot:


Pre Requests:
New Docker for Mac (HyperKit): Install from following link
https://store.docker.com/


Check Docker Version:


$ docker --version
Docker version 18.03, build c97c6d6

$ docker-compose --version
docker-compose version 1.21.0, build 8dd22a9

$ docker-machine --version
docker-machine version 0.14.0, build 9ba6da9

 

$ docker info

$ wget -nv -O docker-compose.yml https://raw.githubusercontent.com/concourse/concourse-docker/master/docker-compose-quickstart.yml

$ docker-compose up -d

$ docker ps

Check it at :  http://127.0.0.1:8080/

Install Concourse CLI (fly)
https://concourse-ci.org/download.html

File may download as fly.dms - Make sure to rename it to fly (mv fly.dms fly)


$ install fly /usr/local/bin

$ which fly

$ fly -v

$ fly login -t hello -c http://localhost:8080

Note: The -t flag is a target alias and is required for almost every command. This alias comes in very handy when you’re targeting multiple concourse installations.

Setting up a Pipeline:


$ wget -nv https://raw.githubusercontent.com/concourse/testflight/master/pipelines/fixtures/simple.yml

Get more pipeline at following link:


https://github.com/search?l=YAML&p=1&q=org%3Aconcourse+platform%3A&type=Code

$ fly -t hello set-pipeline -p hello-world -c simple.yml


To UnPause pipeline:


$ fly -t hello unpause-pipeline -p hello-world

Trigger pipeline manually:


$ fly -t hello trigger-job -j hello-world/simple

 

Add comment


Security code
Refresh

Category: