-
Notifications
You must be signed in to change notification settings - Fork 26
/
InstallHelper.txt
34 lines (21 loc) · 1.04 KB
/
InstallHelper.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This is a helper file with lots of commands!
# install Docker
# Install Jenkins
sudo yum -y update
sudo yum install java-1.8.0
sudo yum remove java-1.7.0-openjdk
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
sudo service jenkins start
sudo chkconfig --add jenkins
# Install Docker Compose
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
# Build JMeter in Docker
# Build Sample-Node-JsService in Docker
# Run Sample-Node-Js-Service in Docker
sudo docker run --name ServiceInstance1 -p 8001:80 -i -e BUILD_NUMBER=1 -t sample-nodejs-service:1.0
sudo docker run --name ServiceInstance2 -p 8002:80 -i -e BUILD_NUMBER=1 -t sample-nodejs-service:1.0
sudo docker run --name ServiceInstance3 -p 8003:80 -i -e BUILD_NUMBER=2 -t sample-nodejs-service:1.0