mirror of
https://github.com/klutchell/unbound-docker.git
synced 2026-10-25 00:03:25 +00:00
Merge pull request #108 from klutchell/kyle/update-test-domains
Use `dnssec.works` instead of `verteiltesysteme.net` for tests
This commit is contained in:
@@ -13,7 +13,7 @@ on:
|
||||
jobs:
|
||||
flowzone:
|
||||
name: Flowzone
|
||||
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
|
||||
uses: product-os/flowzone/.github/workflows/flowzone.yml@kyle/combine-docker-jobs
|
||||
secrets:
|
||||
FLOWZONE_TOKEN: ${{ secrets.FLOWZONE_TOKEN }}
|
||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
|
||||
@@ -60,11 +60,14 @@ docker run --rm --privileged multiarch/qemu-user-static:5.2.0-2 --reset -p yes
|
||||
# run a detached unbound container
|
||||
docker run --rm -d --name unbound klutchell/unbound
|
||||
|
||||
# run dig with dnssec to test an example NOERROR endpoint
|
||||
docker exec unbound dig sigok.verteiltesysteme.net @127.0.0.1 +dnssec
|
||||
# run dig with dnssec to test NOERROR
|
||||
docker exec unbound dig @127.0.0.1 dnssec.works +dnssec +multi
|
||||
|
||||
# run dig with dnssec to test an example SERVFAIL endpoint
|
||||
docker exec unbound dig sigfail.verteiltesysteme.net @127.0.0.1 +dnssec
|
||||
# run dig with dnssec to test SERVFAIL
|
||||
docker exec unbound dig @127.0.0.1 fail01.dnssec.works +dnssec +multi
|
||||
docker exec unbound dig @127.0.0.1 fail02.dnssec.works +dnssec +multi
|
||||
docker exec unbound dig @127.0.0.1 fail03.dnssec.works +dnssec +multi
|
||||
docker exec unbound dig @127.0.0.1 fail04.dnssec.works +dnssec +multi
|
||||
|
||||
# stop and remove the container
|
||||
docker stop unbound
|
||||
|
||||
+3
-3
@@ -6,7 +6,7 @@ variable "GITHUB_REPOSITORY" {
|
||||
default = "klutchell/unbound-docker"
|
||||
}
|
||||
|
||||
target "server" {
|
||||
target "default" {
|
||||
context = "./"
|
||||
dockerfile = "Dockerfile"
|
||||
platforms = [
|
||||
@@ -18,8 +18,8 @@ target "server" {
|
||||
cache-from = [
|
||||
"ghcr.io/klutchell/unbound:latest",
|
||||
"docker.io/klutchell/unbound:latest",
|
||||
"ghcr.io/klutchell/unbound:master",
|
||||
"docker.io/klutchell/unbound:master",
|
||||
"ghcr.io/klutchell/unbound:main",
|
||||
"docker.io/klutchell/unbound:main",
|
||||
"type=registry,ref=ghcr.io/klutchell/unbound:buildkit-cache-${base64encode(GITHUB_REF_NAME)},mode=max"
|
||||
]
|
||||
cache-to = [
|
||||
|
||||
+6
-10
@@ -7,24 +7,17 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
networks:
|
||||
- internal
|
||||
command: -v -v -v
|
||||
command: -v -v
|
||||
|
||||
version:
|
||||
image: localhost:5000/sut
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
networks:
|
||||
- internal
|
||||
command: -V
|
||||
restart: always
|
||||
|
||||
sut:
|
||||
image: alpine:3.16
|
||||
networks:
|
||||
- internal
|
||||
depends_on:
|
||||
- server
|
||||
- version
|
||||
@@ -32,6 +25,9 @@ services:
|
||||
command: >-
|
||||
/bin/sh -c '
|
||||
apk add --no-cache bind-tools &&
|
||||
dig sigok.verteiltesysteme.net @server +dnssec | tee /dev/stderr | grep -wq NOERROR &&
|
||||
dig sigfail.verteiltesysteme.net @server +dnssec | tee /dev/stderr | grep -wq SERVFAIL
|
||||
dig @server dnssec.works +dnssec +multi | tee /dev/stderr | grep -wq NOERROR &&
|
||||
dig @server fail01.dnssec.works +dnssec +multi +time=120 | tee /dev/stderr | grep -wq SERVFAIL &&
|
||||
dig @server fail02.dnssec.works +dnssec +multi +time=120 | tee /dev/stderr | grep -wq SERVFAIL &&
|
||||
dig @server fail03.dnssec.works +dnssec +multi +time=120 | tee /dev/stderr | grep -wq SERVFAIL &&
|
||||
dig @server fail04.dnssec.works +dnssec +multi +time=120 | tee /dev/stderr | grep -wq SERVFAIL
|
||||
'
|
||||
|
||||
@@ -5,8 +5,3 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
networks:
|
||||
- internal
|
||||
|
||||
networks:
|
||||
internal: {}
|
||||
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
default:
|
||||
ipv4_address: 172.28.0.2
|
||||
healthcheck:
|
||||
test: ["CMD", "dig", "-p", "53", "sigok.verteiltesysteme.net", "@127.0.0.1"]
|
||||
test: ["CMD", "dig", "-p", "53", "dnssec.works", "@127.0.0.1"]
|
||||
interval: 30s
|
||||
timeout: 30s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user