Skip to main content

Concourse samples

Comprehensive samples to quickly get up to speed with Concourse.

Requirements

  • Have an account to a running Concourse instance

    • For the first time, you can use the local containers with docker compose -f samples/concourse/compose.yml up -d
    • You can also deploy it in a Kubernetes cluster with Helm chart
    • Ultimately, you can run it on a VM
  • Have fly executable on the machine running the command lines (careful with the version that needs to match the one from Concourse instance)

Samples

Login

fly --target localhost login --concourse-url http://localhost:8080/

Pipelines

  • Hello world

Login on localhost:

fly --target localhost set-pipeline --pipeline helloworld --config samples/concourse/tasks/basic/01_helloworld.yml

# enables the pipeline and run it (can also be done from http://localhost:8080/teams/main/pipelines/helloworld, click on play symbol then on + symbol)
fly -t localhost unpause-pipeline -p helloworld
fly -t localhost trigger-job -j helloworld/job
  • .NET
fly --target localhost set-pipeline --pipeline aspnetcore --config samples/concourse/tasks/dotnet/01_aspnetcore.yml

fly -t localhost unpause-pipeline -p aspnetcore

fly -t localhost trigger-job -j aspnetcore/build-webapp

fly --target localhost set-pipeline --pipeline dotnetglobaltool --config pipelines/dotnetcore/02_globaltool.yml --var mdbatlas-publickey=xxxx --var mdbatlas-publickey=yyyy -var almops-token=zzz --var almops-org=xxxx -var almops-user=yyyy -var almops-token=zzz

fly -t localhost unpause-pipeline -p dotnetglobaltool

fly -t localhost trigger-job -j dotnetglobaltool/mongodb-atlas -w
fly -t localhost trigger-job -j dotnetglobaltool/azure-devops -w

Tasks

  • Hello world
fly --target localhost login --concourse-url http://localhost:8080/

fly -t localhost execute --config samples/concourse/tasks/basic/helloworld.yml