-
Notifications
You must be signed in to change notification settings - Fork 462
/
image-checks.sh
executable file
·17 lines (17 loc) · 922 Bytes
/
image-checks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# This script runs some very basic commands to ensure that the newly build
# images are working correctly. Invoke as:
# ./image-checks.sh <image-tag> <registry-name>
# Kill with Ctrl + C once sidecar starts up successfully.
TAG=$1
REGISTRY=${2:-gcr.io/google-containers}
echo "Verifying that iptables exists in node-cache image"
docker run --rm -it --entrypoint=iptables ${REGISTRY}/k8s-dns-node-cache:${TAG}
echo "Verifying that node-cache binary exists in node-cache image"
docker run --rm -it --entrypoint=/node-cache ${REGISTRY}/k8s-dns-node-cache:${TAG}
echo "Verifying dnsmasq-nanny startup"
docker run --rm -it --entrypoint=/dnsmasq-nanny ${REGISTRY}/k8s-dns-dnsmasq-nanny:${TAG}
echo "Verifying kube-dns startup"
docker run --rm -it --entrypoint=/kube-dns ${REGISTRY}/k8s-dns-kube-dns:${TAG}
echo "Verifying sidecar startup"
docker run --rm -it --entrypoint=/sidecar ${REGISTRY}/k8s-dns-sidecar:${TAG}