Skip to content

Commit

Permalink
scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayNaiduJami committed May 13, 2020
1 parent cd5cd3f commit d537a67
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 2,470 deletions.
40 changes: 0 additions & 40 deletions 5_multisite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,15 @@ EOF
sudo touch /etc/apache2/sites-available/techtales.ml.conf
sudo cat > /etc/apache2/sites-available/techtales.ml.conf<<EOF
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin [email protected]
ServerName techtales.ml
ServerAlias www.techtales.ml
DocumentRoot /var/www/html/techtales.ml/public_html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Expand All @@ -78,35 +58,15 @@ sudo chmod 644 /etc/apache2/sites-available/techtales.ml.conf
sudo touch /etc/apache2/sites-available/learncorp.ml.conf
sudo cat > /etc/apache2/sites-available/learncorp.ml.conf<<EOF
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin [email protected]
ServerName learncorp.ml
ServerAlias www.learncorp.ml
DocumentRoot /var/www/html/learncorp.ml/public_html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Expand Down
10 changes: 10 additions & 0 deletions Docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

sudo apt update -y
sudo apt install apt-transport-https ca-certificates curl gnupg-agent 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 $(lsb_release -cs) stable"
sudo apt update -y
sudo apt install docker-ce -y
sudo apt-mark hold docker-ce
#sudo systemctl status docker
8 changes: 0 additions & 8 deletions config

This file was deleted.

39 changes: 0 additions & 39 deletions groovy

This file was deleted.

14 changes: 9 additions & 5 deletions jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
sudo apt update -y
sudo apt install -y openjdk-8-jdk
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 update -y
sudo apt install -y jenkins
sudo systemctl status jenkins

sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'

sudo add-apt-repository universe
sudo apt-get update -y
sudo apt-get install -y jenkins

sudo sed -i 's/JENKINS_USER=$NAME/JENKINS_USER=root/g' /etc/default/jenkins
sudo sed -i 's/JENKINS_GROUP=$NAME/JENKINS_GROUP=root/g' /etc/default/jenkins
sudo sed -i 's/HTTP_PORT=8080/HTTP_PORT=80/g' /etc/default/jenkins
sudo systemctl restart jenkins

sudo apt update -y
sudo apt install -y maven
sudo apt install -y maven

sudo cat /var/lib/jenkins/secrets/initialAdminPassword
18 changes: 0 additions & 18 deletions jenkins_key_ssh.sh

This file was deleted.

Loading

0 comments on commit d537a67

Please sign in to comment.