GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-web-app-docker/README.md at master · chandramukesh123/java-web-app-docker

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
23 lines (15 loc) · 781 Bytes
/

README.md

Copy path

File metadata and controls

23 lines (15 loc) · 781 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.