Skip to content

CI infrastructure (Jenkins + Gerrit) based on docker containers

Notifications You must be signed in to change notification settings

tivaliy/ci-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ci-infra

ci-infra provides a set of scripts (based on Docker Compose) to manage Continuous Integration infrastructure.

ci-infra services

  • gerrit
  • jenkins

used docker containers

Quick start

  1. Set required variables in the env.config file
  2. Ensure, that newly created network doesn't overlap with already existing ones in your system (see docker-compose.yml):
networks:
ci-infra-net:
  driver: bridge
  driver_opts:
    "com.docker.network.bridge.name": "ci-infra-net"
  ipam:
    driver: default
    config:
    - subnet: 172.18.0.0/24
      gateway: 172.18.0.1
  1. Run ./start_ci.sh up -d
  2. Put WWW content of your http://WEB_SERVER_NAME site to /your/volume/path/nginx/html (defaults to /srv/ci-infra/nginx/html)
  3. Access http://WEB_SERVER_NAME in your browser:
  • Access Gerrit -- http://WEB_SERVER_NAME/gerrit
  • Access Jenkins -- http://WEB_SERVER_NAME/jenkins
  1. Stop and remove all containers and networks ./destroy_ci.sh
  2. (Optionally) Remove VOLUME_PATH directory ./destroy_ci.sh --force (defaults to /srv/ci-infra)

Notes

Currently there is no any integration between Gerrit and Jenkins. The process of their configuration should be performed manually.