Coder Social home page Coder Social logo

d-led / gocd_docker_compose_example Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 4.0 1.87 MB

A simple GoCD demo environment using docker-compose & yaml pipeline as code

License: The Unlicense

Python 100.00%
docker gocd demo yaml pipelines-as-code continuous-delivery continuous-integration demo-environment pipeline

gocd_docker_compose_example's Introduction

GoCD Infrastructure as Code

Build Status

a simple GoCD demo environment that completely provisions itself and adds build pipelines (as code), e.g. as a YAML config, via the REST API / an external tool (gomatic) / through an XML config file.

โ†’ Blog: Self-contained GoCD Environment Using Docker-Compose

the versions

  • gomatic - a server and an agent container as they are out of the box + a gomatic script to provision the server (needs fixing for the current GoCD version)
  • static_config - 2 different agents, server provisioned via a static config file copie into the container
  • provisioned_externally - 2 different agents, server provisioned externally via the API

summary of the provisioned version

the startup sequence:

  • the GoCD server starts
  • two different agents start
  • agents wait to connect to the server
  • the provisioner waits some, and adds the pipelines to the config
  • the server picks up the config and starts the builds

up and running

in static_config, run:

docker-compose up -d

troubleshooting

  • see the console output of the containers
  • In case you mount folders instead of copying them, note, on some platforms Docker fails to mount local folders. In this case, use node-docker-share!

access the instance

  • http://[go-server-ip]:8153

shutdown

docker-compose stop

or destroy via:

docker-compose down --remove-orphans

gocd_docker_compose_example's People

Contributors

d-led avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gocd_docker_compose_example's Issues

Unable to docker-compose up

I get the following error:

Pulling goagent_java (gocd/gocd-agent-ubuntu-16.04:latest)...
ERROR: manifest for gocd/gocd-agent-ubuntu-16.04:latest not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.