_build_single_image.sh 957 B

123456789101112131415161718192021222324252627282930
  1. # Builds a test docker image
  2. test_name=${PWD##*/}
  3. echo 'Building dockerfiles for test: ' "$test_name"
  4. touch "$test_name".name
  5. # Docker won't allow the inclusion of files outside of the build directory
  6. cp ../../*.conf .
  7. cp ../../zerotier-one zerotier-one
  8. cp ../../zerotier-cli zerotier-cli
  9. cp ../../zerotier-cli zerotier-netcon-service
  10. cp ../../zerotier-intercept zerotier-intercept
  11. cp ../../libzerotierintercept.so libzerotierintercept.so
  12. cp ../../liblwip.so liblwip.so
  13. cp ../../netcon_identity.public netcon_identity.public
  14. cp ../../netcon_identity.secret netcon_identity.secret
  15. cp ../../monitor_identity.public monitor_identity.public
  16. cp ../../monitor_identity.secret monitor_identity.secret
  17. docker build --tag="$test_name" -f netcon_dockerfile .
  18. docker build --tag="$test_name"_monitor -f monitor_dockerfile .
  19. rm -f zerotier-cli
  20. rm -f zerotier-netcon-service
  21. rm -f zerotier-intercept
  22. rm -f *.so
  23. rm -f *.public
  24. rm -f *.secret
  25. rm -f *.conf
  26. rm -f *.name