Compare commits

..

No commits in common. "b72a0f906b23611403e40b69eabea006d587cb0b" and "420994613744c8960172955a108fcc93b1f3e715" have entirely different histories.

2 changed files with 10 additions and 8 deletions

14
Jenkinsfile vendored
View File

@ -22,14 +22,16 @@ pipeline {
stage('Start primary container') { stage('Start primary container') {
steps { steps {
sh 'docker compose up -d --no-color primary' sh '''
if [[ $(docker compose ps | wc -l) -eq 1 ]]; then
docker compose up -d --no-color primary
else
docker compose down primary
docker compose up -d --no-color primary
fi
'''
sh 'docker compose ps' sh 'docker compose ps'
} }
}
stage('test dns') {
steps {
sh 'dig ns1.thelinuxpro.net ANY @204.8.15.80'
sh 'dig ns1.in.thelinuxpro.net ANY @10.99.153.241'
} }
} }
} }

View File

@ -18,7 +18,7 @@ services:
container_name: ns1 container_name: ns1
build: build:
dockerfile: Dockerfile.primary dockerfile: Dockerfile.primary
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240423.1 image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240421.1
restart: always restart: always
user: root user: root
environment: environment:
@ -41,7 +41,7 @@ services:
container_name: ns2 container_name: ns2
build: build:
dockerfile: Dockerfile.secondary dockerfile: Dockerfile.secondary
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240423.1 image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240421.1
restart: always restart: always
user: root user: root
environment: environment: