- Homebrew
curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.2.1/concourse_darwin_amd64 && chmod +x concourse && sudo mv concourse /usr/local/bin
brew install postgres
concourse -v
# Server version
pg_config --version
# Client version
psql --version
initdb /usr/local/var/postgres
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/postgresql/9.5.4_1/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
psql -h localhost -U postgres
CREATE ROLE concourse superuser;
CREATE DATABASE atc;
CREATE DATABASE concourse;
ALTER USER concourse WITH PASSWORD 'concourse';
\q
Do this in an empty folder somewhere, you'll need to launch Concourse from this location. The commands are copied from https://concourse.ci/binaries.html
ssh-keygen -t rsa -f host_key -N '' && ssh-keygen -t rsa -f worker_key -N '' && ssh-keygen -t rsa -f session_signing_key -N ''
cp worker_key.pub authorized_worker_keys
concourse web \
--basic-auth-username concourse \
--basic-auth-password concourse \
--session-signing-key session_signing_key \
--tsa-host-key host_key \
--tsa-authorized-keys authorized_worker_keys \
--external-url http://my-ci.example.com