Git Product home page Git Product logo

ci's Introduction

CI

Continuos Integration

Stack:

- gitlab

- jenkins master

(jenkins can be configured to be connected to the local docker daemon)

- tomcat (QA)

- tomcat (PROD)

- jenkins slave

(as a spawning contaienr, exit 0 after docker-compose up)

Persistent data:

All the persistent data goes in the ./data folder. For backup purpose just stop running composition and save that folder.

./data is not tracked in git commits cause is present in .gitignore

Default credential:

- None, the password for the user admin is initialized on the first access

2) Jenkins: (http://localhost:8080)

- Auto generated during the firs start. (it will be printed in the jenkis master container logs)

3) Jenkins slave:

- use jenkins master ssh key

4) Tomcat QA: (http://localhost:1080)

- tsnapmanager:tsnappassword

5) Tomcat PROD: (http://localhost:9080)

- tmanager:tpassword

Tips

- hosts file, add the next lines in /etc/hosts to use names outside of the containers:

127.0.0.1       gitlab jenkins gitlab.local jenkins.local tomcat.dev tomcat.prod

- ssh config: add the next lines in ~/.ssh/config to make easier use of gitlab:

Host gitlab.local
    Port 1122

EXTRA

- to configure jenkins master to connect to docker daemon with network socket, docker daemon must be configured to listen to the network.

This is a sample with systemd dropin unit file. As root, copy and paste the next commands:

systemctl stop docker
mkdir /etc/systemd/system/docker.service.d/
# cat >"/etc/systemd/system/docker.service.d/daemon.conf"<<'EOF'
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock
EOF
systemctl daemon-reload
systemctl start docker

ci's People

Contributors

dvdred avatar

Watchers

 avatar

ci's Issues

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.