Giter Site home page Giter Site logo

gogs-drone-compose's Introduction

gogs-drone-compose

What's inside

  • Consul
  • Registrator
  • Traefik
  • Gogs + PostgreSQL
  • Drone.io (server & client) + MySQL

Why all this madness for a simple CI demonstration ?

While the use of Consul, Registrator and Traefik may seem a lot like "over-kill", they allowed me to build a completly autonomous demo. Which is really close to what a live environment would look like.

And because I was longing at such a system for a while, so why not going all the way ?

Starts the compose

$ docker-compose up -d

Setting up Gogs

Still searching on how one automate this process using environement variables

Go to http://gogs.service.consul to procede to the install.

  • Choose Postgres as database driver
    • host : gogs-db.service.consul:5432
    • username & password : gogs
  • Change localhost to gogs.service.consul whenever asked
  • Create an admin user with the credentials of your choice

Setting up Drone

Go to http://drone.service.consul, click the login button and enter your gogs's credentials (created above). Nothing more to do here.

It's ready

  • Create a repo on gogs
  • Activate the repo on drone
    • Go to the available repos tab, select the repo you would like to use then confirm when asked
    • Check your repo's settings, a webhook must have been created.
  • Commit some work and a .drone.yml file containing a simple workflow (eg. pulling a docker image)
  • Waiting for gogs's hook to hit drone
  • Watch and enjoy

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.