Discover how much time DNS queries take in containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
258 B

#!/bin/sh
go build -o dnstiming main.go
container=$(buildah from fedora:33)
mnt=$(buildah mount $container)
cp dnstiming $mnt
chmod 755 $mnt/dnstiming
buildah config --cmd /dnstiming $container
buildah commit $container dnstiming
buildah unmount $container