Skip to content

dcarastan/concourse-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concourse in a box

Table of content

Introduction

The Concourse in a box project goal is to instantiate a local Concourse CI cluster and blog site for personal needs. I run it on Mac OS 10.12.6, but code can be easily tweaked to run on Linux. YMMV. Feel free to fork and modify to fit your needs.

Requirements

  • MacOS, 8 GB RAM, 16 GB recommended.
  • 5 GB of free disk space, 20 GB or more recommended until Docker fixes the qcow2 disk space eater bug.
  • https://github.com/xenolf/lego/releases (it will be installed if missing).

Usage

up

Run ./ci --help for command help.

The ./ci up command instantiates a docker based Concourse CI cluster and associated services on the local computer. Each cluster service runs in its own container. Cluster features:

  • one Concourse web node
  • one Concourse worker
  • a private Docker registry
  • an Nginx reverse proxy server
  • a Postgress database
  • a ghost blog service

It also generates all internal certificates and passwords. In the end it logs in the current user into the docker registry and setup command line access to the concourse cluster using the fly target ..

rm

The ./ci rm command will teardown the Concourse CI cluster. This performs a docker-compose down to stop all related running containers then wipe out the cluster persistent state data form ./deployments, i.e. Concourse database, credentials and Docker registry image content.

restart

The ./ci restart command performs a warm cluster restart. The docker-compose.yml and other config files like nginx.conf will be regenerated before the cluster is started again. The cluster state and credentials are otherwise preserved.

Links

Follow me on LinkedIn Twitter.

License

The MIT License (MIT)

Copyright © 2017 Doru Carastan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Concourse in a box | A docker container based Concourse CI platform on a shoestring.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages