GithubHelp home page GithubHelp logo

devops-tooling's Introduction

Devops-tooling

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

Requirements

  • Ubuntu 20.04 LTS Server
  • Jenkins 2.303
  • Docker CE 20.10.9
  • Java Azul Zulu JDK 11

Java Installation

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

Jenkins Installation

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

Docker Installation

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

Fineract Docker Image Creation

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

Mifos Docker Image Creation

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

devops-tooling's People

Contributors

iohacker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.