Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stg #1

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
5d5136d
Delete docker-compose.yml
Jul 26, 2017
de34951
Add files via upload
Jul 26, 2017
d7c3b10
Rename docker-compose3.yml to docker-compose.yml
Jul 26, 2017
6cb4a3e
Update job.groovy
Oct 20, 2017
724b847
Rename job.groovy to jenkinsfile
Oct 20, 2017
4aa9fb7
Added Jenkinsfile
Oct 20, 2017
b17d6fd
Added Jenkinsfile
Oct 20, 2017
a3b6760
Added Jenkinsfile
Oct 20, 2017
4537a9e
Added Jenkinsfile
Oct 20, 2017
08d2110
Added Jenkinsfile
Oct 20, 2017
42049ad
Added Jenkinsfile
Oct 20, 2017
4c76471
Added Jenkinsfile
Oct 20, 2017
1a61a5a
Delete Jenkinsfile
Oct 20, 2017
cee0b2b
Rename jenkinsfile to Jenkinsfile
Oct 20, 2017
05d41c6
Update Jenkinsfile
knagababu Nov 2, 2017
aface6a
deleted for test
knagababu Nov 2, 2017
b53490c
syncing files
Nov 2, 2017
b31ec23
modified
Nov 2, 2017
216de4e
git path added
Nov 2, 2017
3fbb257
syncing files
Nov 2, 2017
82c3534
testfor jenkins file
Nov 2, 2017
4fb183f
initial commit
Nov 2, 2017
928b928
modified
Nov 2, 2017
c26e75f
building and pushing
Nov 2, 2017
1b6e354
modified
Nov 2, 2017
cd95bbd
Building and pushing Worker Image
Nov 2, 2017
d33d5f6
app result
Nov 2, 2017
0da232b
final changes done
Nov 2, 2017
df57d81
deleted by nagababu
knagababu Nov 6, 2017
c99bb6f
syncing files
Nov 6, 2017
ae084ab
Building and pushing Vote Image
Nov 6, 2017
0c13361
modified the source code
Nov 6, 2017
e08fe05
commites done
Nov 6, 2017
5429cd3
code commit
Nov 6, 2017
b9a48c6
ip has changed
Nov 6, 2017
8777b19
ip changed
Nov 6, 2017
d26e30f
new ip updated
Nov 6, 2017
282c2b4
ip updated
Nov 6, 2017
124544b
ipchanged again
Nov 6, 2017
3099b57
deleted jenkins file
knagababu Nov 7, 2017
5d90129
created Jenkins file on master branch
Nov 7, 2017
05c5cff
add the script on jenkins file
Nov 7, 2017
6fb58b5
add worker image in Jenkins pipeline
Nov 7, 2017
920d182
added result image on a Jenkins file in master
Nov 7, 2017
61eafe8
created new branch in blue ocean
Nov 7, 2017
0634a7f
created stg branch on example votingapp
Nov 7, 2017
3d05a94
commited by nagababu
knagababu Nov 7, 2017
5458ae2
updated script
Nov 7, 2017
987457a
change script
Nov 7, 2017
93e14a9
stg branch edited
Nov 8, 2017
39adcb4
updated url
Nov 23, 2017
c19ccd9
updated url in all branches
Nov 23, 2017
af36a47
chagned username and url
Nov 23, 2017
c60c96b
Added Jenkinsfile
Nov 23, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
pipeline {
agent any
stages {
stage('syncing files') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
// dtr-login is a login ID in credentials
git 'https://github.com/Imransysg/example-voting-app.git/'

}

}
}

}
}
stage('Vote Image') {
parallel {
stage('Vote Image') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login')
{
git 'https://github.com/Imransysg/example-voting-app.git/'
def vote_img = docker.build('ddcadmin/voting-app-vote','./vote').push('latest')
}

}
}

}
}
stage('stg') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
// dtr-login is a login ID in credentials

git 'https://github.com/Imransysg/example-voting-app.git/'
def vote_img = docker.build('ddcadmin/voting-app-vote','./vote').push('latest')

}
}
}

}
}
}
}
stage('Worker Image') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
git 'https://github.com/Imransysg/example-voting-app.git/'
def worker_img = docker.build('ddcadmin/voting-app-worker','./worker').push('latest')

}

}
}

}
}
stage('Result Image') {
steps {
script {
node
{
docker.withRegistry('https://dtrlb-adockersb.westus.cloudapp.azure.com/','dtr-login'){
// dtr-login is a login ID in credentials
git 'https://github.com/Imransysg/example-voting-app.git/'
def result_img = docker.build('ddcadmin/voting-app-result','./result').push('latest')

}
}
}

}
}
}
}
123 changes: 81 additions & 42 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,81 @@
version: "2"

services:
voting-app:
image: dtrnodednstpal2zkqvglmc.westus.cloudapp.azure.com/admin/vote:latest
ports:
- "80"
networks:
- voteapp
labels:
- "interlock.hostname=vote"
- "interlock.domain=myenterprise.com"
result-app:
image: dtrnodednstpal2zkqvglmc.westus.cloudapp.azure.com/admin/result:latest
ports:
- "80"
networks:
- voteapp
labels:
- "interlock.hostname=results"
- "interlock.domain=myenterprise.com"
worker:
image: dtrnodednstpal2zkqvglmc.westus.cloudapp.azure.com/admin/worker:latest
networks:
- voteapp
redis:
image: redis
ports:
- "6379"
networks:
- voteapp
db:
image: postgres:9.4
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- voteapp
volumes:
db-data:

networks:
voteapp:
version: "3"
services:

redis:
image: redis:alpine
ports:
- "6379"
networks:
- frontend
deploy:
replicas: 2
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
db:
image: postgres:9.4
volumes:
- db-data:/var/lib/postgresql/data
networks:
- backend
deploy:
placement:
constraints: [node.role == manager]
vote:
image: dtrlb-oe3ko7eumonjw.eastus.cloudapp.azure.com/ddcadmin/voting-app-vote:latest
ports:
- 5000:80
networks:
- frontend
depends_on:
- redis
deploy:
replicas: 6
update_config:
parallelism: 2
restart_policy:
condition: on-failure
result:
image: dtrlb-oe3ko7eumonjw.eastus.cloudapp.azure.com/ddcadmin/voting-app-result:latest
ports:
- 5001:80
networks:
- backend
deploy:
replicas: 2
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure

worker:
image: dtrlb-oe3ko7eumonjw.eastus.cloudapp.azure.com/ddcadmin/voting-app-worker:latest
networks:
- frontend
- backend
deploy:
mode: replicated
replicas: 2
labels: [APP=VOTING]
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == worker]
ports:
- "8080:8080"
stop_grace_period: 1m30s
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"

networks:
frontend:
backend:

volumes:
db-data:
12 changes: 0 additions & 12 deletions job.groovy

This file was deleted.

1 change: 1 addition & 0 deletions vote/testfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hi this is test for blue ocean plugin