GithubHelp home page GithubHelp logo

sreenivas2022 / project--docker-jenkins-pipeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phani-rudra9/simpe-java-maven-app

0.0 0.0 0.0 185 KB

Shell 66.38% Java 30.53% Dockerfile 3.08%

project--docker-jenkins-pipeline's Introduction

Installing maven

cd /opt

wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz

tar -xvzf apache-maven-3.6.3-bin.tar.gz

mv apache-maven-3.6.3 maven

Installing JAVA

sudo apt update

sudo apt install openjdk-8-jdk

Exporting the path

vi ~/.bashrc

Add the following configuration

#bash_profile
#get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

#user specific environment and startup programs

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64

export M2_HOME=/opt/maven

export M2=/opt/maven/bin

export PATH=$PATH:$HOME/bin/:$JAVA_HOME:$M2:$M2_HOME

export PATH

Save the bashrc

:wq!

source ~/.bashrc

Now go to Jenkins and download the following plugins

  1. Maven integration

  2. Maven invoker

Go to global tool configuration

Go to maven and uncheck install-automatically and update the maven home directory path and save

Go to new the iteam and create a maven job

Installing docker

  sudo apt-get install docker.io -y

Installing ansible

   sudo apt-get install ansible -y

project--docker-jenkins-pipeline's People

Contributors

phani-rudra9 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.