Following are the references to my other blog, which will help in installing and configuring Java and Nginx
sudo apt-get update
sudo apt-get -y upgrade
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt install oracle-java8-installer
sudo sh -c ‘echo “deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main” >> /etc/apt/sources.list.d/pgdg.list’
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O — | sudo apt-key add -
sudo apt-get -y install postgresql postgresql-contrib
sudo systemctl start postgresql
sudo systemctl enable postgresql
sudo passwd postgres
su — postgres
createuser sonar
# switch to postgresql prompt
psql
ALTER USER sonar WITH ENCRYPTED password ‘StrongPassword’;
CREATE DATABASE sonar OWNER sonar;
\q
wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-7.6.zip sudo…
Following is a guide for installing Jenkins as a service on Google compute engine on a Centos box behind Nginx web server
$ sudo timedatectl set-timezone Asia/Kolkata
$ sudo yum update -y && sudo yum upgrade -y && sudo yum install nginx wget lsof zip unzip -y
$ sudo yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
$ sudo vi /etc/profile.d/jdk.sh
#!/bin/sh
export JAVA_HOME=/lib/jvm/java-1.8.0-openjdk
export JRE_HOME=$JAVA_HOME/jre
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
# adding env variables
cd /etc/profile.d
sudo chmod +x jdk.sh
source jdk.sh
# jenkins user creation
sudo adduser jenkins
sudo passwd jenkins
# jenkins installation sudo mkdir -p /opt/cicd /opt/tools sudo chown -R jenkins:jenkins /opt/cicd…
Introduction to installation of Ansible control host on Google cloud platform on Ubuntu 16.04, under isolated python virtual environment.
This post can also be found at the following link: ansible-on-ubuntu-16–04-lts-using-virtualenv, Ansible on Ubuntu 16.04 LTS using Virtualenv
Advantages of isolating environment
By isolating the environment, we can have multiple versions of ansible deployed on the same machine, which do not intervene with the other environments, which is very good for testing out new releases with out breaking the existing environment.