Setting up Concourse CI on Mac

In this post, I will be demonstrating the steps to install concourse CI with docker compose on Mac.

Requirements:
ensure that docker is installed along with docker compose. here is a link to install docker for Mac https://download.docker.com/mac/stable/Docker.dmg

once you have docker installed, next we create the docker compose file and save it as docker-compose.yml.

version: '3'

services:
  concourse-db:
    image: postgres
    environment:
    - POSTGRES_DB=concourse
    - POSTGRES_PASSWORD=concourse_pass
    - POSTGRES_USER=concourse_user
    - PGDATA=/database

  concourse:
    image: concourse/concourse
    command: quickstart
    privileged: true
    depends_on: [concourse-db]
    ports: ["8080:8080"]
    environment:
    - CONCOURSE_POSTGRES_HOST=concourse-db
    - CONCOURSE_POSTGRES_USER=concourse_user
    - CONCOURSE_POSTGRES_PASSWORD=concourse_pass
    - CONCOURSE_POSTGRES_DATABASE=concourse
    - CONCOURSE_EXTERNAL_URL
    - CONCOURSE_ADD_LOCAL_USER=test:test
    - CONCOURSE_MAIN_TEAM_ALLOW_ALL_USERS=true
    - CONCOURSE_WORKER_GARDEN_NETWORK
AquaTribe:~ babatundeolu-isa$ docker-compose up -d
Creating network "babatundeolu-isa_default" with the default driver
Creating babatundeolu-isa_concourse-db_1 ... done
Creating babatundeolu-isa_concourse_1    ... done

AquaTribe:~ babatundeolu-isa$ fly login -t development -c http://127.0.0.1:8080
logging in to team 'main'

navigate to the following URL in your browser:

  http://127.0.0.1:8080/sky/login?redirect_uri=http://127.0.0.1:61315/auth/callback

or enter token manually:

next we head to the Url above and login with the credentials specified in the environment for CONCOURSE_ADD_LOCAL_USER.

after login you should see that the target has been saved.

AquaTribe:~ babatundeolu-isa$ fly login -t development -c http://127.0.0.1:8080
logging in to team 'main'

navigate to the following URL in your browser:

  http://127.0.0.1:8080/sky/login?redirect_uri=http://127.0.0.1:61315/auth/callback

or enter token manually:
target saved

lets head to the concourse URL which is http://127.0.0.1:8080.

and finally we download the command line tool by clicking on the mac symbol.

Leave a Reply

Your email address will not be published. Required fields are marked *