Lab 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Lab : 1

Setting Up Environment

GitHub
In this lab we gonna use a simple JAVA application like a prototype

https://github.com/MarwenSoula/javulna

You need to fork the dedicated repository in your own GitHub account.

Setting up Jenkins Server

Perquisitions :

Java 17

Install open-jdk-17

• sudo apt update


• sudo apt install openjdk-17-jdk openjdk-17-jre
• java –version

Install Jenkins

• curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee


/usr/share/keyrings/jenkins-keyring.asc > /dev/null
• echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]
https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list >
/dev/null
• sudo apt update
• sudo apt install Jenkins
• sudo systemctl start Jenkins
• sudo systemctl status Jenkins
• sudo ufw allow 8080

Install Maven

• wget https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-
bin.tar.gz
• tar xzvf apache-maven-3.9.4-bin.tar.gz
• mv apache-maven-3.9.4 /opt/
• cd ~
• vim .profile

paste this configuration into the .profile file:

• M2_HOME='/opt/apache-maven-3.9.4'
PATH="$M2_HOME/bin:$PATH"
export PATH
• mvn –version

Install Docker

• sudo apt update


• sudo apt install apt-transport-https ca-certificates curl software-properties-common
• curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
• sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu
focal stable"
• apt-cache policy docker-ce
• sudo apt install docker-ce
• sudo systemctl status docker
• sudo usermod -aG docker ${USER}

Install Ansible

Recommended Installation:

https://linux.how2shout.com/install-and-configure-ansible-on-ubuntu-22-04-linux/

You might also like