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 — GitHub - zeineldin/Java-testapp

BranchesTags
Open more actions menu

Latest commit

 

History

402 Commits
402 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
k8s
k8s
 
 
src/main
src/main
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
JenkinsFile
JenkinsFile
 
 
Jenkinsfile
Jenkinsfile
 
 
README.md
README.md
 
 
artifact_version_update
artifact_version_update
 
 
blue-green-playbook.yml
blue-green-playbook.yml
 
 
bluegreen-deployment.yaml
bluegreen-deployment.yaml
 
 
deploy-playbook.yml
deploy-playbook.yml
 
 
devops.html
devops.html
 
 
install-tomcat-playbook.yml
install-tomcat-playbook.yml
 
 
pom.xml
pom.xml
 
 
tomcat-users.xml
tomcat-users.xml
 
 

Repository files navigation

DevOpsArea Sample Java App -example

=======

DevOpsArea Sample Java App -example

Build war with maven and DevOpsArea framework

Steps are the following:

  1. Clone the repository to your local machine

  2. The Dockerfile will do:

     A. Create maven container <br />
    
    • copy pom.xml to /tmp
    • copy folder "src" to /tmp/src
    • Go to /tmp folder then run "mvn package"

    The previos command will generate devopsarea-01.war

     B. Create tomcat container<br />
    
    • Will move the file devopsarea-01.war from maven container to /webapp in tomcat contaner
    • Do health check to make sure that the artifact is deployed
  3. Run 'docker build -t devopsarea .'

    • Will create a Docker image called devopsarea
  4. Run 'docker run -d -p 8080:8080 --name devopsarea-sample-java-app devopsarea'

    • Will create a container called devopsarea-sample-java-app and will forward the container internal port 8080 to locathost 8080 in the hosted machine
  5. Open [http://localhost:8080/ (http://localhost:8080/ in your browser and see the result.

Note : if you will use ansible you could do the following command (Run command as user Ansible )

sudo runuser -l ansible -c 'ansible-playbook deploy-playbook.yml'

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

8 stars

Watchers

1 watching

Forks

23 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — 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.