One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
java -version
For url http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz, the variables should be defined as:
java_base_version="8"
java_sub_version="11"| # | |
| # First Login on PostgreSQL 9.6.4 | |
| # | |
| # configuration files on Ubuntu - /etc/postgresql/9.6/main | |
| # configuration files on CentOS - ## | |
| # pg_hba.conf file - add this lines for remote connection | |
| host all all 0.0.0.0/0 md5 | |
| host all all ::/0 md5 |
| sudo apt-get update | |
| sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx | |
| sudo -u postgres psql | |
| - paste this code in postgres console: | |
| CREATE DATABASE django_project; | |
| CREATE USER username WITH PASSWORD 'pass1234'; | |
| ALTER ROLE username SET client_encoding TO 'utf8'; | |
| ALTER ROLE username SET default_transaction_isolation TO 'read committed'; |
| #!/bin/bash | |
| # | |
| # Jenkins 2.73.2 instructions for installation on Ubuntu Linux | |
| wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - | |
| sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
| sudo apt-get update | |
| sudo apt-get install jenkins | |
| # edit the configurations |
| #!/bin/bash | |
| # | |
| # Maven 3.5 on CentOS 7 | |
| cd ~ | |
| wget http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz | |
| tar -zxvf apache-maven-3.5.2-bin.tar.gz | |
| mv apache-maven-3.5.2 /var/<company-name>/apps/ | |
| vim /etc/profile.d/maven.sh |
| #!/bin/bash | |
| # | |
| # Jenkins 2.73.2 instructions for execute backup from .zip files of Thinbackup plugin | |
| cd /opt/backup/jenkins | |
| # global configuration for first use | |
| git config --global user.email "ryan.padilha@gmail.com" | |
| git config --global user.name "Ryan Padilha" | |
| # if the remote repository is not setup |
| #!/bin/bash | |
| # | |
| # Jenkins 2.73.2 instructions for execute backup from .zip files of Thinbackup plugin | |
| cd /opt/backup/jenkins | |
| # global configuration for first use | |
| git config --global user.email "ryan.padilha@gmail.com" | |
| git config --global user.name "Ryan Padilha" | |
| if [ -n "$(git status --porcelain)" ]; then |
| psql -h 172.31.3.119 -U <username> -p 5492 <database> | |
| \dt public.* | |
| select * from pg_tables where schemaname='public'; | |
| SELECT specific_catalog, specific_schema, specific_name, routine_name | |
| FROM information_schema.routines | |
| WHERE routine_type='FUNCTION' | |
| AND specific_schema='public' | |
| AND routine_name LIKE 'gin_%'; |
| #!/bin/bash | |
| # | |
| # Installation of Hashicorp Nomad for deploy process | |
| # | |
| # Download this file: | |
| # curl -sSL https://gist.githubusercontent.com/ryanpadilha/351a4a4f17afdc8eb0d963897b98122a/raw/ -o nomad-install.sh | |
| # | |
| echo "Initializing script for devops - Nomad Hashicorp" |