ci-infra provides a set of scripts (based on Docker Compose) to manage Continuous Integration infrastructure.
- gerrit
- jenkins
- db-gerrit (mysql:latest)
- gerrit (openfrontier/gerrit)
- jenkins (tivalii/jenkins based on jenkins:latest)
- proxy (nginx:1.12.2)
- Set required variables in the
env.config
file - 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
- Run
./start_ci.sh up -d
- Put WWW content of your
http://WEB_SERVER_NAME
site to/your/volume/path/nginx/html
(defaults to/srv/ci-infra/nginx/html
) - Access
http://WEB_SERVER_NAME
in your browser:
- Access Gerrit --
http://WEB_SERVER_NAME/gerrit
- Access Jenkins --
http://WEB_SERVER_NAME/jenkins
- Stop and remove all containers and networks
./destroy_ci.sh
- (Optionally) Remove
VOLUME_PATH
directory./destroy_ci.sh --force
(defaults to/srv/ci-infra
)
Currently there is no any integration between Gerrit and Jenkins. The process of their configuration should be performed manually.