NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

1)war deploy
step-1)git--> build--> execute shell --> mvn : clean
mvn compiler:compile
mvn exec: java
mvn war:war

2) TOMCAT(Deploy to container)
step-1
step-2)--> Install plugin--deploy to container
step-3)-->cmd--(sudo cd /opt/tomcat/conf)--sudo vi tomcat-users.xml--insert mode--
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="admin" password="admin" roles="manager-gui,manager-script"/>
sudo systemctl stop tomcat.service
sudo systemctl start tomcat.service
step-4)-->postbuild--deploy to ear/war container--warfilepath --addcontainers--add-tomcaturl&creds--buildnow

3)DOCKER
STEP-1)IN CMD sudo useradd -m dockeradmin
sudo passwd dockeradmin and give pw
sudo usermod -aG docker dockeradmin
step-2)war deploy-(build1)
step-3)install plugin--publish over ssh & go to configuresystem--sshservers add--(name:dockerserver, host:ip, username:dockeradmin--advanced--checkbox--pw cnfrm--testconfigurtion
step-4)postbuild-send build arti over ssh-- sourcefile-target/*.war
remove prefx- target/
remote dir- opt/ -(build2) -check file transfrd dilog in console output
step-5)cmd--go to dockeradmin/opt--> sudo ls-->check war file
step-6)create dockerfile--> move to dockeradmin-->sudo vi Dockerfile--
i)FROM tomcat:latest
RUN cp -R /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps
COPY ./*.war /usr/local/tomcat/webapps--(check--docker build -t myimage)
Postbuild--> exec command
cd/home/dockeradmin/opt
docker stop tomcat
docker rm tomcat
docker rmi myimage
(docker build -t myimage .)
(docker run -p (5000 or 8093):8080 -d --name tomcat myimage

ii)FROM ibtech/tomcat9
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]
COPY opt/*.war /usr/local/tomcat/webapps/webapp.war -->exit(:wq)
Docker build -t myimage .
step-7)postbuild-exec command--
docker stop tom
docker rm tom
docker rmi myimg
Docker build -t myimage . -f/home/dockeradmin/opt/Dockerfile
Docker run -d --name tom -p 5000:8080 myimg

4)ANSIBLE PLAYBOOK
step-1)war deploy-(build1)
step-2)install plugin--publish over ssh & go to configuresystem--sshservers add--(name:ansible, host:ip, username:labuser creds--advanced--checkbox--pw cnfrm--testconfigurtion
step-3)postbuild-send build arti over ssh-- sourcefile-target/*.war
remove prefx- target/
remote dir- opt/ -(build2) -check file transfrd dilog in console output
step-4)create sample.yml file-- sudo vi sample.yml -->insert
---
- name: sample
hosts: localhost
become: yes
tasks:
- name: task1
copy:
src: /home/labuser/opt/maven-war-0.0.1-SNAPSHOT.war
dest: /opt/tomcat/webapps
check: ansible-playbook -i myhosts sample.yml
step5) postbuild-->exec command(ansible-playbook -i myhosts sample.yml)


     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.