Giter Site home page Giter Site logo

project2's Introduction

Jenkins Installation in Ubuntu

Installation

  • Step 1: First add the key to your system

    sudo curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee
    /usr/share/keyrings/jenkins-keyring.asc > /dev/null

  • Step 2: Add a Jenkins apt repository entry

    sudo echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]
    https://pkg.jenkins.io/debian-stable binary/ | sudo tee
    /etc/apt/sources.list.d/jenkins.list > /dev/null

  • Step 3: Update your local package index

    sudo apt-get update

  • Step 4: Install Java

    sudo apt-get install fontconfig openjdk-11-jre

  • Step 5: Install Jenkins

    sudo apt-get install jenkins

Checking for Jenkins

jenkins --version

Start Jenkins

  • Step 1: Enable the Jenkins service to start

    sudo systemctl enable jenkins

  • Step 2: Start the Jenkins service

    sudo systemctl start jenkins.

  • Step 3: Check the status of the Jenkins service

    sudo systemctl status jenkins

Unlocking Jenkins

  • Step 1: Browse to http://:8080

    /var/lib/jenkins/secrets/initialAdminPassword

    will be displayed

  • Step 2: Go back to terminal and type cmd

    sudo cat /var/lib/jenkins/secrets/initialAdminPassword

    copy the password displayed

  • Step 3: Go back to the browser and paste the password

    and begin Jenkins installation

Docker Installation in Ubuntu

Installation

.
  • Step 1: Update your local package index

    sudo apt-get update

  • Step 2: Install Docker

    sudo apt install docker.io -y

Check for Docker

docker --version

Git Installation

Install Git

sudo apt install git

Check Git

git version

Common Error

/var/run/docker.sock: connect: permission denied

Resolution

sudo chmod 777 /var/run/docker.sock

Execute shell Command

docker run hello-world
docker rm `docker ps -aq` -f
docker build -t demo .
docker tag demo sauravssr/nginx:httpd
docker run -d -p 80:80 sauravssr/nginx:httpd
docker ps

Repository

DockerHub : https://hub.docker.com/repository/docker/sauravssr/nginx

GitHub : https://github.com/SauravSSR/Project2.git

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.