You are on page 1of 6

Jenkins – INSTALLATION IN UBUNTU 16.

04::

Open terminal

sudo apt-get update && sudo apt-get install curl

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add –

sudo apt-get install jenkins

sudo systemctl start jenkins

sudo systemctl status jenkins

sudo ufw allow 8080

sudo ufw status

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

How to change default port in Jenkins

sudo nano /etc/default/Jenkins

Ctrl+X

sudo service jenkins restart

Java Jdk – INSTALLATION IN UBUNTU 16.04::

sudo add-apt-repository ppa:openjdk-r/ppa


sudo apt-get update
sudo apt-get install openjdk-7-jdk

Eclipse Neon – INSTALLATION IN UBUNTU 16.04::

https://www.eclipse.org/downloads/

https://www.eclipse.org/downloads/download.php?
file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk-x86_64.tar.gz

tar xfz ~/Downloads/ https://www.eclipse.org/downloads/download.php?


file=/technology/epp/downloads/release/neon/2/eclipse-java-neon-2-linux-gtk-x86_64.tar.gz
How to increase maximum heap size of JVM in ubuntu

java -XshowSettings:vm

sudo nano /etc/profile

export _JAVA_OPTIONS=-Xmx4096m

java -XshowSettings:vm

Installation of Azure Data Studio


https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio?view=sql-
server-ver15
DOCKER – INSTALLATION IN UBUNTU 16.04::

Open terminal
IN> sudo apt-get update && sudo apt-get install curl
1> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
2> sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $
(lsb_release -cs) stable"
3> sudo apt-get update
4> apt-cache policy docker-ce
5> sudo apt-get install -y docker-ce
6> sudo systemctl status docker
7> sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-
`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
8> sudo apt-get install curl
9> sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-
`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
10> sudo chmod +x /usr/local/bin/docker-compose
11> docker-compose --version
Apln> sudo docker-compose build
Apln> sudo docker-compose up

NW> ip addr show

MSSQL-SERVER:
----------------------

> mssql-server : pwd : Sreeb@18

> /opt/mssql/bin/mssql-conf set-sa-password

> systemctl status mssql-server

> sudo netstat -pna | grep 1433

"onlineApplicationUrl": "http://mydirection.qa.newdirectionira.com/authentication/sign-up?
sponsor="

$ sudo apt-get remove docker-compose


$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$
(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

NDIRA – PROJECT – SOFTWARE – ENVIRONMENT


----------------------------------------
Pre-Requisites:
--------------

1> Angularjs 1.x


2> nodejs version v8.X
3> Expreess js
4> Jade Language
5> JSON
6> javascript
7> swagger
8> mssql server 2017

Setup MSSQL Server 2017:


-----------------------

Step-1: Register the Microsoft SQL Server Ubuntu Repository

Terminal-> sudo add-apt-repository "$(wget -qO-


https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"

Step-2: Install SQL Server

Terminal-> sudo apt-get update


Terminal-> sudo apt-get install -y mssql-server

Step-3: Run mssql-conf setup and follow the prompts to set the SA password and choose edition

Terminal-> sudo /opt/mssql/bin/mssql-conf setup

Step-4: Verify service status

Terminal-> systemctl status mssql-server

Observe status : Active: active (running)


Install nodejs:
--------------

Step-0: Install curl


> sudo apt install curl
> curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
Step-1: Install nodejs

Terminal -> sudo apt-get update

Terminal -> sudo apt-get install nodejs


> sudo npm cache clean -f > sudo npm install -g n > sudo npm cache clean -f
> npm install npm@latest -g

Terminal -> nodejs -v

Webstorm 2018.2 Installation:


----------------------------

wget https://download.jetbrains.com/webstorm/WebStorm-2018.1.7.tar.gz
tar xvfz WebStorm-2018.1.7.tar.gz
cd WebStorm-*/bin
./webstorm.sh
Terminal -> sudo snap install webstorm –classic
(for latest)(optional)

Download Applications:
---------------------

Step-1: Download NDIRA-BACKEND application


Terminal-> git clone -b develop https://emp@bitbucket.org/teamsdira/ndira-backend.git
Step-2: Open folder ndira-backend-> public_html and run npm where package.json file located
(Config files: public_html>configs>ENV.js / docker-compose.yml)
Terminal-1st> sudo apt install npm > sudo npm install
Step-3: Open ndira-backend application in Webstorm and build application using docker
Webstorm-Terminal -> sudo docker-compose build
Webstorm-Terminal -> sudo docker-compose up

Step-4: Download NDIRA-PRO-BACKEND application

Terminal -> git clone https://emp@bitbucket.org/teamsdira/ndira-my-direction-pro-backend.git

Terminal -> cd ndira-my-direction-pro-backend/

Terminal -> git fetch && git checkout prod


> configure ENV.js with database server details
Step-5: Open folder ndira-my-direction-pro-backend and install and run npm where package.json,
server.js files are located.
Open Terminal -> sudo npm cache clean -f > sudo apt install npm
Terminal -> sudo npm install

Step-6: Open ndira-my-direction-pro-backend application in Webstorm and configure ENV->


Develpoement.json with databse server details
Example:-
-------

"server": "localhost",
"port": 1433,
"user": "sa",
"password": "1@23",
"database": "NDI_SponsorPortal"
Step-7: Download NDIRA-PORTAL application

Terminal -> git clone https://emp@bitbucket.org/teamsdira/ndira-my-direction-pro-portal.git

Terminal -> cd ndira-my-direction-pro-portal/

Terminal -> git fetch && git checkout prod

Step-8: Open folder ndira-my-direction-pro-portal and install npm where package.js file is located
Open Terminal -> sudo npm install
Step-9: Open folder core in ndira-my-direction-pro-portal and run npm where server.js file is
located
Open Terminal -> sudo npm start
Step-10: Run ndira-my-direction-pro-backend and ndira-my-direction-pro-portal applications

Step-11: Access application with the URL :- http://localhost:3000

You might also like