Skip to content

A local development environment for concourse that is entirely contained in docker-compose

Notifications You must be signed in to change notification settings

ashishchettri/concourse-development-environment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concourse Development Environment

Table of Contents

  1. Introduction
  2. Requirements
  3. Services
  4. Turn-up

Introduction

This is a local development environment for concourse that extends the docker-compose based tutorial from concourse-ci. The purpose of this environment is to stand up a concourse playground locally with no additional dependencies outside of docker and docker-compose.

Requirements

  • docker 1.13.0+
  • docker-compose

Services

web

The concourse web-ui and api.

worker

The concourse worker with docker installed. This requires that the docker socket be mounted from your host.

keygen_sidecar

The keygen_sidecar generates all the required SSH keys to turn up the local concourse dev environment. This should be run once on startup and not touched.

fly

Fly is the local command line tooling for concourse. This persists all flyrc files and can either be logged into directly by changing the entrypoint or running it repeatedly.

Attaching to fly

You can directly attach to fly's shell by running the following command.

docker-compose run --entrypoint sh fly

Running fly repeatedly

Since the flyrc persists credentials, you can repeatedly run the service as many times as you want without logging into the shell. I've provided an example command to login to the web-api via docker-compose.

docker-compose run fly -t main -c http://web:8080 -u concourse -changeme

Turn-up

Turn-up can be accomplished simply by running:

docker-compose up

Logging into the api via fly

  1. Invoke the fly service.
docker-compose run fly -t main -c http://web:8080 -u concourse -changeme
  1. verify that you can access run authenticated tasks.
docker-compose run fly -t main workers

About

A local development environment for concourse that is entirely contained in docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 78.8%
  • Shell 21.2%