Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu
 
 

Repository files navigation

java-web-app-docker

Deploying Java web application in one server

steps involved in Jenkins file

  • changing source code into war file using Maven build tool
  • Making war file as Docker image by building Dockerfile
  • Push the Docker image into DockerHub
  • Running Docker container in deployment server

For this, we need to have 2 aws servers. one is for Jenkins and another is for deploying application

In Jenkins server, we need to install Java and Jenkins

To work Docker commands in Jenkins console, we need to add Jenkins user in Docker group in command line using

  • usermod -aG docker jenkins

In Deployment server, we need to download docker

we need to add ubuntu user in docker group to login server and execute docker container commands

  • usermod -aG docker ubuntu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.