Giter Site home page Giter Site logo

ci's Introduction

ci project

Features

  • Continuous integration system base on other docker projects.
  • Create a Gerrit with PostgreSQL as backend and OpenLDAP as authentication server.
  • Create a Jenkins that integrate with Gerrit.
  • Create a Jenkins slave workspace volume.
  • Create a Redmine with OpenLDAP as authentication server.
  • Optionally create a OpenLDAP container for demo.
  • Optionally create a Nexus as local maven repository.
  • Create a Nginx as a reverse proxy of the Gerrit, Jenkins, Redmine, Nexus(Optional).
  • Import a project to demonstrate the configuration of Gerrit, Jenkins, Redmine which including:
    • Using Jenkins gerrit plugin to trigger builds from gerrit.
    • Using Jenkins swarm plugin to trigger builds on a dockerized slave node.

Prerequisites

Docker service installed on host.
Git installed on host.
A OpenLDAP or AD server with anonymous binding configuration. (Optional)
An user account with email in the OpenLDAP or AD server. (Optional)
A Sonatype Nexus server. (Optional)

Get docker images.

docker pull openfrontier/gerrit-ci
docker pull openfrontier/jenkins
docker pull openfrontier/jenkins-swarm-maven-slave
docker pull sameersbn/redmine
docker pull postgres
docker pull openfrontier/nginx
docker pull openfrontier/openldap (Optional)
docker pull openfrontier/nexus (Optional)

Get scripts.

cd ~
git clone https://github.com/openfrontier/gerrit-docker.git
git clone https://github.com/openfrontier/jenkins-docker.git
git clone https://github.com/openfrontier/redmine-docker.git
git clone https://github.com/openfrontier/nginx-docker.git
git clone https://github.com/openfrontier/ci.git

# These two are optional
git clone https://github.com/openfrontier/openldap-docker.git
git clone https://github.com/openfrontier/nexus-docker.git

Create all containers.

## Edit variables according to your environment.
vi ~/ci/config
## Start all containers.
~/ci/run.sh

Access those services.

## Homepage
http://your.server.url
## Gerrit
http://your.server.url/gerrit
Login by <gerrit admin uid> and <gerrit admin password>
## Jenkins
http://your.server.url/jenkins
## Redmine
http://your.server.url/redmine
Default Administrator's username and password is admin/admin.
## Nexus (Optional)
http://your.server.url/nexus
Default Administrator's username and password is admin/admin123.

Stop and restart all containers.

## Stop all
~/ci/stop.sh
## Restart all
~/ci/start.sh

Upgrade containers.(Use with caution!)

## Upgrade Gerrit, Jenkins, Redmine, Nginx
## Keep all data containers untouched.
## Gerrit 2.10.6 -> 2.11.2 has been tested.
~/ci/upgradeContainer.sh

Destroy all containers.(Use with caution!)

~/ci/destroyContainer.sh

ci's People

Contributors

allanice001 avatar mengzhaopeng avatar sfried avatar thinkernel avatar

Watchers

 avatar

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.