Git Product home page Git Product logo

jenkins-docker-in-docker's Introduction

Installation

  1. Install Git

  2. copy use git

    git clone https://github.com/DenisBuyakov/jenkins-docker-in-docker.git
    cd jenkins-docker-in-docker/
  3. Install Docker
    (ubuntu option)Install for ubuntu

    sudo ./install-docker
    sudo systemctl status docker
  4. install jenkins (optional local) use docker env

    cd docker
    cp .env.template .env
    sudo docker-compose up -d

    Usual Access URL: http://{host-address-here}:8082 root password for jenkins in file docker/jenkins-data/secrets/initialAdminPassword
    you can use command

    sudo docker exec jenkins-blueocean cat /var/jenkins_home/secrets/initialAdminPassword
  5. install "docker" plugin and "Docker Pipeline"

  6. (aws ubuntu option)swap enable

    sudo dd if=/dev/zero of=/swapfile bs=128M count=16
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    sudo swapon -s
    sudo nano /etc/fstab
    sudo awk ... /etc/fstab > /tmp/$$
    sudo cat /tmp/$$ > /etc/fstab
    sudo rm /tmp/$$

    Add the following new line at the end of the file, save the file, and then exit:

    /swapfile swap swap defaults 0 0
  7. go to "Manage Nodes and Clouds" and then "Configure Clouds" and then "Add a new cloud" and then select the "docker" type from the drop-down list.

    Docker Cloud details: docker host url - tcp://docker:2376 we need to set up the Server Credentials

    X.509 Client Certificate

    Client Key. Client Certificate. Server CA Certificate. from /certs directory you can use command

    sudo docker exec jenkins-docker cat /certs/client/key.pem
    sudo docker exec jenkins-docker cat /certs/client/cert.pem
    sudo docker exec jenkins-docker cat /certs/server/ca.pem
    
    sudo docker exec jenkins-blueocean cat /certs/client/key.pem
    sudo docker exec jenkins-blueocean cat /certs/client/cert.pem
    sudo docker exec jenkins-docker-in-docker cat /certs/server/ca.pem

    checkbox enabled

jenkins-docker-in-docker's People

Contributors

den-by 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.