Compare commits

..

2 Commits

Author SHA1 Message Date
Kameron Kenny - pi501 b72a0f906b bump version 2024-04-23 12:30:50 -04:00
Kameron Kenny - pi501 3f920af11d add tests 2024-04-23 12:30:16 -04:00
2 changed files with 8 additions and 10 deletions

14
Jenkinsfile vendored
View File

@ -22,16 +22,14 @@ pipeline {
stage('Start primary container') { stage('Start primary container') {
steps { steps {
sh ''' sh 'docker compose up -d --no-color primary'
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:240421.1 image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240423.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:240421.1 image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240423.1
restart: always restart: always
user: root user: root
environment: environment: