DevOps Tooling Scripts TL;DR
git clone https://github.com/openMF/devops-tooling.git
cd devops-tooling/scripts/
chmod 775 *
sudo ./01.java_installation.sh
sudo ./02.jenkins_installation.sh
sudo ./03.docker_installation.sh
- Ubuntu 20.04 LTS Server
- Jenkins 2.303
- Docker CE 20.10.9
- Java Azul Zulu JDK 11
Install the dependencies
sudo apt-get -q update
sudo apt-get -yq install gnupg curl
Add Azul's public key
sudo apt-key adv \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 0xB1998361219BD9C9
Download and install the package that adds the Azul APT repository to the list of sources
curl -O https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-2_all.deb
Install the package
sudo apt-get install ./zulu-repo_1.0.0-2_all.deb
Update the package sources
sudo apt-get update
Install Azul Zulu JDK 11
sudo apt-get install zulu11-jdk
Verify the Java version
java -version
Download the Jenkins Key and Add it to the keyring
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
Add the Jenkins APT repository to the list of sources
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
/etc/apt/sources.list.d/jenkins.list'
Update the package sources
sudo apt-get update
Install Jenkins
sudo apt-get install jenkins
Register the Jenkins service
sudo systemctl daemon-reload
Start the Jenkins service
sudo systemctl start jenkins
Check the status of the Jenkins service
sudo systemctl status jenkins
Uninstall old versions.
sudo apt-get remove docker docker-engine docker.io containerd runc
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
Add Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Use the following command to set up the stable repository
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Update the package sources
sudo apt-get update
Install Docker
sudo apt-get install docker-ce docker-ce-cli containerd.io
Create the docker group
sudo groupadd docker
Add your user to the docker group.
sudo usermod -aG docker $USER
Register the Docker service
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
Run this command to download the current stable release of Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Apply executable permissions to the binary
sudo chmod +x /usr/local/bin/docker-compose
Test the installation.
docker-compose --version
Login into the Container Repository Account
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
Clone the repository and run the Docker commands for the Fineract
git clone https://github.com/apache/fineract.git
cd fineract
docker build -f Dockerfile -t org.apache.fineract .
docker tag org.apache.fineract fineract/org.apache.fineract
docker push fineract/org.apache.fineract
After this actions you can test the pulling command
docker pull fineract/org.apache.fineract
Login into the Container Repository Account
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
Clone the repository and run the Docker commands for the Community App
git clone https://github.com/openMF/community-app.git
cd community-app
docker build -f Dockerfile -t org.mifos.community-app .
docker tag org.mifos.community-app mifos/org.mifos.community-app
docker push mifos/org.mifos.community-app
After this actions you can test the pulling command
docker pull mifos/org.mifos.community-app