deploy secondary
This commit is contained in:
parent
604a9a6c10
commit
336b2b4d83
|
@ -9,7 +9,7 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
docker version
|
docker version
|
||||||
docker info
|
docker info
|
||||||
docker compose version
|
docker compose version
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,10 +26,18 @@ pipeline {
|
||||||
sh 'docker compose ps'
|
sh 'docker compose ps'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('test dns') {
|
stage('Start secondary container') {
|
||||||
|
steps {
|
||||||
|
sh 'DOCKER_HOST="ssh://jenkins@pi502.in.thelinuxpro.net" docker compose up -d --no-color secondary'
|
||||||
|
sh 'DOCKER_HOST="ssh://jenkins@pi502.in.thelinuxpro.net" docker compose ps'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('test primary dns') {
|
||||||
steps {
|
steps {
|
||||||
sh 'dig ns1.thelinuxpro.net ANY @204.8.15.80'
|
sh 'dig ns1.thelinuxpro.net ANY @204.8.15.80'
|
||||||
sh 'dig ns1.in.thelinuxpro.net ANY @10.99.153.241'
|
sh 'dig ns1.in.thelinuxpro.net ANY @10.99.153.241'
|
||||||
|
sh 'dig ns1.thelinuxpro.net ANY @204.8.15.81'
|
||||||
|
sh 'dig ns1.in.thelinuxpro.net ANY @10.99.153.242'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue