Skip to content

Using Jenkins To Build java project using maven and Push Docker Image To DockerHub

Notifications You must be signed in to change notification settings

waleednegm/JenkinsPipeline-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Pipeline Using to Build Java Project And Push To DockerHub

Using Jenkins To Build java project using maven , create Docker Image And Push the Docker Image To DockerHub

First i create Ec2 instance in AWS to deploy Jenkins on a server

alt text alt text alt text alt text

sudo yum update
sudo yum install docker
sudo service docker start
sudo usermod -aG docker $USER

alt text

docker run -p 8080:8080 -p 50000:50000 -d \
-v jenkine_home_v2:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(which docker):/usr/bin/docker jenkins/jenkins:lts

Open The required Ports to access it with web browser

alt text alt text

Then login to server and install Jenkins and its dependencies

alt text

Add your credentials For Github and DockerHub

alt text

Create Pipeline And connect it to Your Repo in Githu

alt text

Build the pipeline

alt text

And Everything is Ok

alt text

About

Using Jenkins To Build java project using maven and Push Docker Image To DockerHub

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published