Skip to content

Starting up a test Concourse using binaries

Clara Fu edited this page Dec 16, 2021 · 2 revisions

I wanted to jot down a few notes on how to start up Concourse using the binaries in Mac OS for testing purposes. (of course it doesn't actually run properly because you can't run concourse on mac but its purely for testing purposes)

  1. Download the binaries from the github releases page.

  2. Start up postgres

brew services start postgresql

Then run psql

psql postgres

Create a new user

CREATE ROLE dev WITH LOGIN PASSWORD 'dev' CREATEDB;

Create a new database

CREATE DATABASE atc OWNER dev;
  1. Create keys
ssh-keygen -t rsa -b 4096 -m PEM -f ./session_signing_key
ssh-keygen -t rsa -b 4096 -m PEM -f ./tsa_host_key
ssh-keygen -t rsa -b 4096 -m PEM -f ./worker_key
  1. Start up concourse web
env CONCOURSE_ADD_LOCAL_USER=test:test CONCOURSE_MAIN_TEAM_LOCAL_USER=test CONCOURSE_SESSION_SIGNING_KEY=session_signing_key CONCOURSE_TSA_HOST_KEY=tsa_host_key CONCOURSE_TSA_AUTHORIZED_KEYS=worker_key.pub CONCOURSE_POSTGRES_HOST=127.0.0.1 CONCOURSE_POSTGRES_PORT=5432 CONCOURSE_POSTGRES_DATABASE=atc CONCOURSE_POSTGRES_USER=dev CONCOURSE_POSTGRES_PASSWORD=dev CONCOURSE_EXTERNAL_URL=http://localhost:8080 ./concourse web

  1. Start up concourse worker
env CONCOURSE_WORK_DIR=/opt/concourse/worker CONCOURSE_TSA_HOST=10.0.2.15:2222 CONCOURSE_TSA_PUBLIC_KEY=tsa_host_key.pub CONCOURSE_TSA_WORKER_PRIVATE_KEY=worker_key ./concourse worker