MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings
From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.
With Motoshare, every parked vehicle finds a purpose.
Owners earn. Renters ride.
🚀 Everyone wins.
Day 3
-----------------------------------
Depoy Tomcat to 1 Res
================================
1st --- Deploy in Local Resource
Manual - Installing Tomcat is manual
Auto - Install PetApp in tomcat using Cloudbees
2nd --- Remote Resources
Linux Box | Using Ansible
Both should be Automated
3rd ---- remote kn k8
Both should be Automated
How to install Java In windows?
----------------------------
https://www.devopsschool.com/blog/complete-guide-of-java-installation-in-linux/
https://jdk.java.net/archive/
JDK 11
--------------------------------------
<blockquote class="wp-embedded-content" data-secret="8eLVCBXHq6"><a href="https://www.devopsschool.com/blog/tomcat-install-and-configuration-tutorial-and-guide/">Tomcat Install and Configuration Tutorial and Guide</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="“Tomcat Install and Configuration Tutorial and Guide” — DevOpsSchool.com" src="https://www.devopsschool.com/blog/tomcat-install-and-configuration-tutorial-and-guide/embed/#?secret=EJclod3YQ4#?secret=8eLVCBXHq6" data-secret="8eLVCBXHq6" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
https://tomcat.apache.org/download-90.cgi
Deploy - C:\tools\apache-tomcat-9.0.79\webapps
Start script - C:\tools\apache-tomcat-9.0.79\bin\startup.bat
Stop Script - C:\tools\apache-tomcat-9.0.79\bin\shutdown.bat
couldn't create artifact version: error [DuplicateArtifactVersionName]: Invalid artifactVersion nameDetails:Duplicate artifactVersion name: 'com.acme:jpetstore:7.0.16'
C:\\tmp\\artifacts
'C:\\tmp\\artifacts'
C:\\tools\\apache-tomcat-9.0.79\\webapps
http://localhost:8080/manager/html
=================================================
C:\Program Files\CloudBees\Software Delivery Automation\src\plugins
Step 1 - Plugins Installation - DONE
Step 2 - JAVA & Tomcat Installation - DONE
How to install Java In windows?
----------------------------
<blockquote class="wp-embedded-content" data-secret="evAyrtCkfS"><a href="https://www.devopsschool.com/blog/complete-guide-of-java-installation-in-linux/">Java Installation Guide in Linux & Windows</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="“Java Installation Guide in Linux & Windows” — DevOpsSchool.com" src="https://www.devopsschool.com/blog/complete-guide-of-java-installation-in-linux/embed/#?secret=hDhqjsU1aA#?secret=evAyrtCkfS" data-secret="evAyrtCkfS" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
https://jdk.java.net/archive/
JDK 11
--------------------------------------
How to install Tomcat 9?
<blockquote class="wp-embedded-content" data-secret="8eLVCBXHq6"><a href="https://www.devopsschool.com/blog/tomcat-install-and-configuration-tutorial-and-guide/">Tomcat Install and Configuration Tutorial and Guide</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="“Tomcat Install and Configuration Tutorial and Guide” — DevOpsSchool.com" src="https://www.devopsschool.com/blog/tomcat-install-and-configuration-tutorial-and-guide/embed/#?secret=EJclod3YQ4#?secret=8eLVCBXHq6" data-secret="8eLVCBXHq6" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
Download - https://tomcat.apache.org/download-90.cgi
c/tools/tomcat
How to create /enable a tomcat user to acces tomcat?
Example scnario is in Windows. Linux user can use logic of it.
# Step 1 - Stop your tomcat service
Stop Script - C:\tools\apache-tomcat-9.0.79\bin\shutdown.bat
# Step 2 - Go to "conf' directory of tomcat home path.
e.g - C:\tools\apache-tomcat-9.0.79\conf
# Step 3 - Open up a file "tomcat-users.xml" and add following lines in the file as per the image below; Make sure your remember username and password
# Step 4 - Start a Tomcat
Start script - C:\tools\apache-tomcat-9.0.79\bin\startup.bat
# Step 5 - Validate a user by accessing Manager app or Host Manager.
=========================================================
Step 1 - Create an Env
============================
Using Terraform
Step 2 - create an Application
Using Ansible
Step 3 - Deploy App
========================================================
Step 1 - Create 1 Env called "wizbrand" & create a tier called "dev"
Step 2 - Add a Resources
Step 3 - Upload these in EC Artifact. chat=chat.war mail=mail.war
Step 4 - Create 1 application "wizbrand" DONE
Step 5 - Create a TIER called "web" & "app" & "db" DONE
web
==================
Component = chat + mail
Step 6 - Create a Component called "chat" and "mail" under Application. chat=web.war mail=mail.war - DONE
Step 7 - Create a "Component process" for chat [download]
Component Process Step 1
Component Process Step 2
Step 8 - Create a "Component process" for mail [download]
Component Process Step 1
Component Process Step 2
Step 9 - Create a "Application Process"
deploy
undeploy
others
Application Process Step 1
Application Process Step 2
Step 10 - Attach you Application to Env.
=========================================================
At line 75: InvalidComponentName: Component Tomcat not found Line 0001: Getting 'args' Line 0002: Getting 'args' Line 0003: Getting 'args' Line 0012: Getting 'args' Line 0012: Getting 'args' Line 0013: Getting 'args' Line 0014: Getting 'args' Line 0015: Getting 'args' Line 0017: Getting 'args' Line 0018: Getting 'args' Line 0019: Getting 'args' Line 0021: Getting 'args' Line 0022: Getting 'args' Line 0023: Getting 'args' Line 0026: Getting 'args' Line 0027: Getting 'args' Line 0028: Getting 'args' Line 0029: Getting 'args' Line 0031: Getting 'args' Line 0032: Getting 'args' Line 0038: DSL method 'application' Line 0039: Setting argument 'description' to '' Line 0040: Setting argument 'projectName' to ' Trial Guide ' Line 0042: DSL method 'applicationTier' Line 0042: Handling 'application' before processing 'applicationTier' Line 0042: Checking if application exists with args {applicationName=jpetstore, description=, projectName= Trial Guide } Line 0042: application exists: false Line 0042: Invoking 'createApplication' with args {applicationName=jpetstore, description=, projectName= Trial Guide } Line 0042: Done invoking 'createApplication' Line 0044: DSL method 'component' Line 0044: Handling 'applicationTier' before processing 'component' Line 0044: Checking if applicationTier exists with args {applicationTierName=webTier} Line 0044: Resolving projectName to ' Trial Guide ' from application[name=jpetstore,id=a9eea019-4193-11ee-bc32-0a0027000002] Line 0044: Resolving applicationName to 'jpetstore' from application[name=jpetstore,id=a9eea019-4193-11ee-bc32-0a0027000002] Line 0044: applicationTier exists: false Line 0044: Invoking 'createApplicationTier' with args {applicationTierName=webTier} Line 0044: Resolving projectName to ' Trial Guide ' from
Instructions
Provide artifact and application deployment details.
Make sure the plugin configuration is created before you proceed. The configuration holds the password and other connection-related information required by the plugin.
To manage the Tomcat plugin configuration, click 'Administration' > 'Plugins' from the Automation Platform menu and then click the 'Configure' link for that plugin.
Additional Information
Create a simple Java application model to deploy to Tomcat Application Server.
Pre-Requisite
This template assumes
If a WAR or JAR file is not uploaded, it is already published to the CloudBees CD Artifact Repository
Tomcat plugin has been configured properly
couldn't create artifact version: error [DuplicateArtifactVersionName]: Invalid artifactVersion nameDetails:Duplicate artifactVersion name: 'com.acme:jpetstore:7.0.16'
At line 75: InvalidComponentName: Component Tomcat not found Line 0001: Getting 'args' Line 0002: Getting 'args' Line 0003: Getting 'args' Line 0012: Getting 'args' Line 0012: Getting 'args' Line 0013: Getting 'args' Line 0014: Getting 'args' Line 0015: Getting 'args' Line 0017: Getting 'args' Line 0018: Getting 'args' Line 0019: Getting 'args' Line 0021: Getting 'args' Line 0022: Getting 'args' Line 0023: Getting 'args' Line 0026: Getting 'args' Line 0027: Getting 'args' Line 0028: Getting 'args' Line 0029: Getting 'args' Line 0031: Getting 'args' Line 0032: Getting 'args' Line 0038: DSL method 'application' Line 0039: Setting argument 'description' to '' Line 0040: Setting argument 'projectName' to ' Trial Guide ' Line 0042: DSL method 'applicationTier' Line 0042: Handling 'application' before processing 'applicationTier' Line 0042: Checking if application exists with args {applicationName=jpetstore, description=, projectName= Trial Guide } Line 0042: application exists: false Line 0042: Invoking 'createApplication' with args {applicationName=jpetstore, description=, projectName= Trial Guide } Line 0042: Done invoking 'createApplication' Line 0044: DSL method 'component' Line 0044: Handling 'applicationTier' before processing 'component' Line 0044: Checking if applicationTier exists with args {applicationTierName=webTier} Line 0044: Resolving projectName to ' Trial Guide ' from application[name=jpetstore,id=b1da6fbc-41b6-11ee-8539-0a0027000002] Line 0044: Resolving applicationName to 'jpetstore' from application[name=jpetstore,id=b1da6fbc-41b6-11ee-8539-0a0027000002] Line 0044: applicationTier exists: false Line 0044: Invoking 'createApplicationTier' with args {applicationTierName=webTier} Line 0044: Resolving projectName to ' Trial Guide ' fro
At line 75: InvalidComponentName: Component Tomcat not found Line 0001: Getting 'args' Line 0002: Getting 'args' Line 0003: Getting 'args' Line 0012: Getting 'args' Line 0012: Getting 'args' Line 0013: Getting 'args' Line 0014: Getting 'args' Line 0015: Getting 'args' Line 0017: Getting 'args' Line 0018: Getting 'args' Line 0019: Getting 'args' Line 0021: Getting 'args' Line 0022: Getting 'args' Line 0023: Getting 'args' Line 0026: Getting 'args' Line 0027: Getting 'args' Line 0028: Getting 'args' Line 0029: Getting 'args' Line 0031: Getting 'args' Line 0032: Getting 'args' Line 0038: DSL method 'application' Line 0039: Setting argument 'description' to '' Line 0040: Setting argument 'projectName' to ' Trial Guide ' Line 0042: DSL method 'applicationTier' Line 0042: Handling 'application' before processing 'applicationTier' Line 0042: Checking if application exists with args {applicationName=jpetstore, description=, projectName= Trial Guide } Line 0042: application exists: false Line 0042: Invoking 'createApplication' with args {applicationName=jpetstore, description=, projectName= Trial Guide } Line 0042: Done invoking 'createApplication' Line 0044: DSL method 'component' Line 0044: Handling 'applicationTier' before processing 'component' Line 0044: Checking if applicationTier exists with args {applicationTierName=webTier} Line 0044: Resolving projectName to ' Trial Guide ' from application[name=jpetstore,id=3ac1e3f5-41b7-11ee-ab34-0a0027000002] Line 0044: Resolving applicationName to 'jpetstore' from application[name=jpetstore,id=3ac1e3f5-41b7-11ee-ab34-0a0027000002] Line 0044: applicationTier exists: false Line 0044: Invoking 'createApplicationTier' with args {applicationTierName=webTier} Line 0044: Resolving projectName to ' Trial Guide ' from application[name=jpetstore,id=3ac1e3f5-41b7-11ee-ab34-0a0027000002] Line 0044: Resolving applicationName to 'jpetstore' from application[name=jpetstore,id=3ac1e3f5-41b7-11ee-ab34-0a0027000002] Line 0044: Done invoking 'createApplicationTier' Line 0045: Setting argument 'applicationName' to 'jpetstore' Line 0046: Setting argument 'pluginKey' to 'null' Line 0047: Setting argument 'projectName' to ' Trial Guide ' Line 0048: Setting argument 'reference' to '1' Line 0049: Setting argument 'sourceComponentName' to 'TomcatMC' Line 0050: Setting argument 'sourceProjectName' to 'Electric Cloud' Line 0051: Setting argument 'actualParameter' to '{artifactName=com.acme:jpetstore, artifactVersion= 7.0.18, jdbcDriver=null, jdbcConnection=null, sourceDirectory=C:\\tools\\apache-tomcat-9.0.79\\webapps, warFileName=jpetstore.war, tomcatConfig=Tomcat, contextPath=jpetstore, jdbcUsername=null, jdbcPassword=null}' Line 0044: Checking if component exists with args {pluginName=null, componentName=Tomcat, applicationName=jpetstore, pluginKey=null, projectName= Trial Guide , reference=1, sourceComponentName=TomcatMC, sourceProjectName=Electric Cloud, actualParameter={artifactName=com.acme:jpetstore, artifactVersion= 7.0.18, jdbcDriver=null, jdbcConnection=null, sourceDirectory=C:\\tools\\apache-tomcat-9.0.79\\webapps, warFileName=jpetstore.war, tomcatConfig=Tomcat, contextPath=jpetstore, jdbcUsername=null, jdbcPassword=null}} Line 0044: component exists: false Line 0044: Invoking 'createComponent' with args {pluginName=null, componentName=Tomcat, applicationName=jpetstore, pluginKey=null, projectName= Trial Guide , reference=1, sourceComponentName=TomcatMC, sourceProjectName=Electric Cloud, actualParameter={artifactName=com.acme:jpetstore, artifactVersion= 7.0.18, jdbcDriver=null, jdbcConnection=null, sourceDirectory=C:\\tools\\apache-tomcat-9.0.79\\webapps, warFileName=jpetstore.war, tomcatConfig=Tomcat, contextPath=jpetstore, jdbcUsername=null, jdbcPassword=null}} Line 0044: Resolving applicationTierName to 'webTier' from applicationTier[name=webTier,id=3acc925d-41b7-11ee-ab34-0a0027000002] Line 0044: Done invoking 'createComponent' Line 0044: Invoking
In step 'Tomcat Deploy Application' : Missing parameter(s) to 'DeployApp': config
In step 'Tomcat Deploy Application' : Missing parameter(s) to 'DeployApp': configCode language: HTML, XML (xml)