Supporting code for blog post at https://kudulab.io/posts/gocd-preflight-validation/
This setup is using Dojo with docker-compose driver.
The gocd-cli is provided by gocd-cli-dojo docker image and GoCD server is the official image.
Assuming you already have a working docker, you can install dojo with:
DOJO_VERSION=0.5.0
wget -O dojo https://github.com/ai-traders/dojo/releases/download/${DOJO_VERSION}/dojo_linux_amd64
sudo mv dojo /usr/local/bin
sudo chmod +x /usr/local/bin/dojoThen to setup GoCD server and linked docker container with gocd-cli run the following command at the root of the project:
./tasks setup_gocd