Assessment - 3 and 4
Assessment - 3 and 4
- 03 Section - U
Assessment - 3
wget <https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-
maven-3.8.3-bin.tar.gz>
tar -xvf apache-maven-3.8.3-bin.tar.gz
mv apache-maven-3.9.6 /opt/
find / -name maven
• Path of JDK:
<aside> 🏠 /usr/lib/jvm/java-17-openjdk
</aside>
• Plugins
</aside>
Installation of Tomcat
wget <https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.85/bin/apache-tomcat-
9.0.85.tar.gz>
tar -xzvf apache-tomcat-9.0.85.tar.gz
mv apache-tomcat-9.0.85 tomcat
sudo cd tomcat
sudo ./bin/startup.sh
cd /opt/tomcat
sudo cd conf
nano tomcat-users.xml
Paste this:
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
➢ Go to the Dashboard, then select Manage Jenkins, followed by Credentials and System.
➢ Add new credentials with the username "deployer" and password "deployer".
rm -rf /var/lib/apt/lists/*
/tmp/tomcat.tar.gz && \\
rm /tmp/tomcat.tar.gz
# Start Tomcat
➢ Installs the standard Java Development Kit (JDK) along with wget.
Store this Dockerfile in a directory alongside your Dockerfile and any other essential files.
To construct the Docker image, go to the directory containing the Dockerfile and execute
the subsequent command in your terminal:
docker build -t my-tomcat-image
Once the image is constructed, you can launch a container using the following command:
This command will link port 8080 on your local machine to port 8080 within the Docker
container, enabling you to access the Tomcat server via your web browser at
http://localhost:8080.