2015-12-04 20:39:54 +00:00
|
|
|
# Builds a test docker image
|
|
|
|
|
|
|
|
test_name=${PWD##*/}
|
|
|
|
echo 'Building dockerfiles for test: ' "$test_name"
|
|
|
|
touch "$test_name".name
|
|
|
|
|
|
|
|
# Docker won't allow the inclusion of files outside of the build directory
|
|
|
|
cp ../../*.conf .
|
|
|
|
cp ../../zerotier-one zerotier-one
|
|
|
|
cp ../../zerotier-cli zerotier-cli
|
2015-12-07 11:21:46 +00:00
|
|
|
cp ../../zerotier-cli zerotier-netcon-service
|
2015-12-04 20:39:54 +00:00
|
|
|
cp ../../zerotier-intercept zerotier-intercept
|
2015-12-07 13:37:14 +00:00
|
|
|
cp ../../libzerotierintercept.so libzerotierintercept.so
|
2015-12-04 20:39:54 +00:00
|
|
|
cp ../../liblwip.so liblwip.so
|
|
|
|
cp ../../netcon_identity.public netcon_identity.public
|
|
|
|
cp ../../netcon_identity.secret netcon_identity.secret
|
|
|
|
cp ../../monitor_identity.public monitor_identity.public
|
|
|
|
cp ../../monitor_identity.secret monitor_identity.secret
|
|
|
|
|
|
|
|
docker build --tag="$test_name" -f netcon_dockerfile .
|
|
|
|
docker build --tag="$test_name"_monitor -f monitor_dockerfile .
|
|
|
|
|
|
|
|
rm -f zerotier-cli
|
2015-12-07 11:21:46 +00:00
|
|
|
rm -f zerotier-netcon-service
|
2015-12-04 20:39:54 +00:00
|
|
|
rm -f zerotier-intercept
|
2015-12-07 13:37:14 +00:00
|
|
|
rm -f *.so
|
|
|
|
rm -f *.public
|
|
|
|
rm -f *.secret
|
2015-12-04 20:39:54 +00:00
|
|
|
rm -f *.conf
|
|
|
|
rm -f *.name
|