Makefile 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. # run from repository root
  2. #
  3. # Example:
  4. # make clean -f ./hack/scripts-dev/Makefile
  5. # make build -f ./hack/scripts-dev/Makefile
  6. .PHONY: build
  7. build:
  8. GO_BUILD_FLAGS="-v" ./build
  9. ./bin/etcd --version
  10. ETCDCTL_API=3 ./bin/etcdctl version
  11. clean:
  12. rm -f ./codecov
  13. rm -rf ./agent-*
  14. rm -rf ./covdir
  15. rm -f ./*.log
  16. rm -f ./bin/Dockerfile-release
  17. rm -rf ./bin/*.etcd
  18. rm -rf ./gopath
  19. rm -rf ./release
  20. rm -f ./integration/127.0.0.1:* ./integration/localhost:*
  21. rm -f ./clientv3/integration/127.0.0.1:* ./clientv3/integration/localhost:*
  22. rm -f ./clientv3/ordering/127.0.0.1:* ./clientv3/ordering/localhost:*
  23. _GO_VERSION = 1.9.2
  24. ifdef GO_VERSION
  25. _GO_VERSION = $(GO_VERSION)
  26. endif
  27. # Example:
  28. # GO_VERSION=1.8.5 make build-docker-test -f ./hack/scripts-dev/Makefile
  29. # make build-docker-test -f ./hack/scripts-dev/Makefile
  30. # gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
  31. # GO_VERSION=1.8.5 make push-docker-test -f ./hack/scripts-dev/Makefile
  32. # make push-docker-test -f ./hack/scripts-dev/Makefile
  33. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  34. # GO_VERSION=1.8.5 make pull-docker-test -f ./hack/scripts-dev/Makefile
  35. # make pull-docker-test -f ./hack/scripts-dev/Makefile
  36. build-docker-test:
  37. $(info GO_VERSION: $(_GO_VERSION))
  38. @cat ./Dockerfile-test | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  39. > ./.Dockerfile-test
  40. docker build \
  41. --tag gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  42. --file ./.Dockerfile-test .
  43. push-docker-test:
  44. $(info GO_VERSION: $(_GO_VERSION))
  45. gcloud docker -- push gcr.io/etcd-development/etcd-test:go$(_GO_VERSION)
  46. pull-docker-test:
  47. $(info GO_VERSION: $(_GO_VERSION))
  48. docker pull gcr.io/etcd-development/etcd-test:go$(_GO_VERSION)
  49. # Example:
  50. # make build-docker-test -f ./hack/scripts-dev/Makefile
  51. # make compile-with-docker-test -f ./hack/scripts-dev/Makefile
  52. compile-with-docker-test:
  53. $(info GO_VERSION: $(_GO_VERSION))
  54. docker run \
  55. --rm \
  56. --mount type=bind,source=`pwd`,destination=/etcd \
  57. gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  58. /bin/bash -c "cd /etcd && GO_BUILD_FLAGS=-v ./build && ./bin/etcd --version"
  59. # Local machine:
  60. # TEST_OPTS="PASSES='fmt'" make test -f ./hack/scripts-dev/Makefile
  61. # TEST_OPTS="PASSES='fmt bom dep compile build unit'" make test -f ./hack/scripts-dev/Makefile
  62. # TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional'" make test -f ./hack/scripts-dev/Makefile
  63. # TEST_OPTS="PASSES='build grpcproxy'" make test -f ./hack/scripts-dev/Makefile
  64. #
  65. # Example (test with docker):
  66. # make pull-docker-test -f ./hack/scripts-dev/Makefile
  67. # TEST_OPTS="PASSES='fmt'" make docker-test -f ./hack/scripts-dev/Makefile
  68. # TEST_OPTS="VERBOSE=2 PASSES='unit'" make docker-test -f ./hack/scripts-dev/Makefile
  69. #
  70. # Travis CI (test with docker):
  71. # TEST_OPTS="PASSES='fmt bom dep compile build unit'" make docker-test -f ./hack/scripts-dev/Makefile
  72. #
  73. # Semaphore CI (test with docker):
  74. # TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional'" make docker-test -f ./hack/scripts-dev/Makefile
  75. # HOST_TMP_DI=/tmp TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional'" make docker-test -f ./hack/scripts-dev/Makefile
  76. # TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'" make docker-test -f ./hack/scripts-dev/Makefile
  77. #
  78. # grpc-proxy tests (test with docker):
  79. # TEST_OPTS="PASSES='build grpcproxy'" make docker-test -f ./hack/scripts-dev/Makefile
  80. # HOST_TMP_DI=/tmp TEST_OPTS="PASSES='build grpcproxy'" make docker-test -f ./hack/scripts-dev/Makefile
  81. TEST_SUFFIX = $(shell date +%s | base64 | head -c 15)
  82. _TEST_OPTS = PASSES='unit'
  83. ifdef TEST_OPTS
  84. _TEST_OPTS = $(TEST_OPTS)
  85. endif
  86. _TMP_DIR_MOUNT_FLAG = --mount type=tmpfs,destination=/tmp
  87. ifdef HOST_TMP_DIR
  88. _TMP_DIR_MOUNT_FLAG = --mount type=bind,source=$(HOST_TMP_DIR),destination=/tmp
  89. endif
  90. .PHONY: test
  91. test:
  92. $(info TEST_OPTS: $(_TEST_OPTS))
  93. $(info log-file: test-$(TEST_SUFFIX).log)
  94. $(_TEST_OPTS) ./test 2>&1 | tee test-$(TEST_SUFFIX).log
  95. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-$(TEST_SUFFIX).log
  96. docker-test:
  97. $(info GO_VERSION: $(_GO_VERSION))
  98. $(info TEST_OPTS: $(_TEST_OPTS))
  99. $(info log-file: test-$(TEST_SUFFIX).log)
  100. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  101. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  102. docker run \
  103. --rm \
  104. $(_TMP_DIR_MOUNT_FLAG) \
  105. --mount type=bind,source=`pwd`,destination=/go/src/github.com/coreos/etcd \
  106. gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  107. /bin/bash -c "$(_TEST_OPTS) ./test 2>&1 | tee test-$(TEST_SUFFIX).log"
  108. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-$(TEST_SUFFIX).log
  109. docker-test-coverage:
  110. $(info GO_VERSION: $(_GO_VERSION))
  111. $(info log-file: docker-test-coverage-$(TEST_SUFFIX).log)
  112. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  113. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  114. docker run \
  115. --rm \
  116. $(_TMP_DIR_MOUNT_FLAG) \
  117. --mount type=bind,source=`pwd`,destination=/go/src/github.com/coreos/etcd \
  118. gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  119. /bin/bash -c "COVERDIR=covdir PASSES='build build_cov cov' ./test 2>&1 | tee docker-test-coverage-$(TEST_SUFFIX).log && /codecov -t 6040de41-c073-4d6f-bbf8-d89256ef31e1"
  120. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 docker-test-coverage-$(TEST_SUFFIX).log
  121. # build release container image with Linux
  122. _ETCD_VERSION ?= $(shell git rev-parse --short HEAD || echo "GitNotFound")
  123. ifdef ETCD_VERSION
  124. _ETCD_VERSION = $(ETCD_VERSION)
  125. endif
  126. # Example:
  127. # ETCD_VERSION=v3.3.0-test.0 make build-docker-release-master -f ./hack/scripts-dev/Makefile
  128. # ETCD_VERSION=v3.3.0-test.0 make push-docker-release-master -f ./hack/scripts-dev/Makefile
  129. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  130. build-docker-release-master: compile-with-docker-test
  131. $(info ETCD_VERSION: $(_ETCD_VERSION))
  132. cp ./Dockerfile-release ./bin/Dockerfile-release
  133. docker build \
  134. --tag gcr.io/etcd-development/etcd:$(_ETCD_VERSION) \
  135. --file ./bin/Dockerfile-release \
  136. ./bin
  137. rm -f ./bin/Dockerfile-release
  138. docker run \
  139. --rm \
  140. gcr.io/etcd-development/etcd:$(_ETCD_VERSION) \
  141. /bin/sh -c "/usr/local/bin/etcd --version && ETCDCTL_API=3 /usr/local/bin/etcdctl version"
  142. push-docker-release-master:
  143. $(info ETCD_VERSION: $(_ETCD_VERSION))
  144. gcloud docker -- push gcr.io/etcd-development/etcd:$(_ETCD_VERSION)
  145. # Example:
  146. # make build-docker-test -f ./hack/scripts-dev/Makefile
  147. # make compile-with-docker-test -f ./hack/scripts-dev/Makefile
  148. # make build-docker-static-ip-test -f ./hack/scripts-dev/Makefile
  149. # gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
  150. # make push-docker-static-ip-test -f ./hack/scripts-dev/Makefile
  151. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  152. # make pull-docker-static-ip-test -f ./hack/scripts-dev/Makefile
  153. # make docker-static-ip-test-certs-run -f ./hack/scripts-dev/Makefile
  154. # make docker-static-ip-test-certs-metrics-proxy-run -f ./hack/scripts-dev/Makefile
  155. build-docker-static-ip-test:
  156. $(info GO_VERSION: $(_GO_VERSION))
  157. @cat ./hack/scripts-dev/docker-static-ip/Dockerfile | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  158. > ./hack/scripts-dev/docker-static-ip/.Dockerfile
  159. docker build \
  160. --tag gcr.io/etcd-development/etcd-static-ip-test:go$(_GO_VERSION) \
  161. --file ./hack/scripts-dev/docker-static-ip/.Dockerfile \
  162. ./hack/scripts-dev/docker-static-ip
  163. push-docker-static-ip-test:
  164. $(info GO_VERSION: $(_GO_VERSION))
  165. gcloud docker -- push gcr.io/etcd-development/etcd-static-ip-test:go$(_GO_VERSION)
  166. pull-docker-static-ip-test:
  167. $(info GO_VERSION: $(_GO_VERSION))
  168. docker pull gcr.io/etcd-development/etcd-static-ip-test:go$(_GO_VERSION)
  169. docker-static-ip-test-certs-run:
  170. $(info GO_VERSION: $(_GO_VERSION))
  171. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  172. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  173. docker run \
  174. --rm \
  175. --tty \
  176. $(_TMP_DIR_MOUNT_FLAG) \
  177. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  178. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-static-ip/certs,destination=/certs \
  179. gcr.io/etcd-development/etcd-static-ip-test:go$(_GO_VERSION) \
  180. /bin/bash -c "cd /etcd && /certs/run.sh && rm -rf m*.etcd"
  181. docker-static-ip-test-certs-metrics-proxy-run:
  182. $(info GO_VERSION: $(_GO_VERSION))
  183. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  184. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  185. docker run \
  186. --rm \
  187. --tty \
  188. $(_TMP_DIR_MOUNT_FLAG) \
  189. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  190. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-static-ip/certs-metrics-proxy,destination=/certs-metrics-proxy \
  191. gcr.io/etcd-development/etcd-static-ip-test:go$(_GO_VERSION) \
  192. /bin/bash -c "cd /etcd && /certs-metrics-proxy/run.sh && rm -rf m*.etcd"
  193. # Example:
  194. # make build-docker-test -f ./hack/scripts-dev/Makefile
  195. # make compile-with-docker-test -f ./hack/scripts-dev/Makefile
  196. # make build-docker-dns-test -f ./hack/scripts-dev/Makefile
  197. # gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
  198. # make push-docker-dns-test -f ./hack/scripts-dev/Makefile
  199. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  200. # make pull-docker-dns-test -f ./hack/scripts-dev/Makefile
  201. # make docker-dns-test-certs-run -f ./hack/scripts-dev/Makefile
  202. # make docker-dns-test-certs-common-name-run -f ./hack/scripts-dev/Makefile
  203. # make docker-dns-test-certs-gateway-run -f ./hack/scripts-dev/Makefile
  204. # make docker-dns-test-certs-wildcard-run -f ./hack/scripts-dev/Makefile
  205. build-docker-dns-test:
  206. $(info GO_VERSION: $(_GO_VERSION))
  207. @cat ./hack/scripts-dev/docker-dns/Dockerfile | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  208. > ./hack/scripts-dev/docker-dns/.Dockerfile
  209. docker build \
  210. --tag gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  211. --file ./hack/scripts-dev/docker-dns/.Dockerfile \
  212. ./hack/scripts-dev/docker-dns
  213. docker run \
  214. --rm \
  215. --dns 127.0.0.1 \
  216. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  217. /bin/bash -c "/etc/init.d/bind9 start && cat /dev/null >/etc/hosts && dig etcd.local"
  218. push-docker-dns-test:
  219. $(info GO_VERSION: $(_GO_VERSION))
  220. gcloud docker -- push gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION)
  221. pull-docker-dns-test:
  222. $(info GO_VERSION: $(_GO_VERSION))
  223. docker pull gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION)
  224. docker-dns-test-certs-run:
  225. $(info GO_VERSION: $(_GO_VERSION))
  226. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  227. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  228. docker run \
  229. --rm \
  230. --tty \
  231. --dns 127.0.0.1 \
  232. $(_TMP_DIR_MOUNT_FLAG) \
  233. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  234. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs,destination=/certs \
  235. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  236. /bin/bash -c "cd /etcd && /certs/run.sh && rm -rf m*.etcd"
  237. docker-dns-test-certs-common-name-run:
  238. $(info GO_VERSION: $(_GO_VERSION))
  239. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  240. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  241. docker run \
  242. --rm \
  243. --tty \
  244. --dns 127.0.0.1 \
  245. $(_TMP_DIR_MOUNT_FLAG) \
  246. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  247. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-common-name,destination=/certs-common-name \
  248. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  249. /bin/bash -c "cd /etcd && /certs-common-name/run.sh && rm -rf m*.etcd"
  250. docker-dns-test-certs-gateway-run:
  251. $(info GO_VERSION: $(_GO_VERSION))
  252. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  253. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  254. docker run \
  255. --rm \
  256. --tty \
  257. --dns 127.0.0.1 \
  258. $(_TMP_DIR_MOUNT_FLAG) \
  259. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  260. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-gateway,destination=/certs-gateway \
  261. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  262. /bin/bash -c "cd /etcd && /certs-gateway/run.sh && rm -rf m*.etcd"
  263. docker-dns-test-certs-wildcard-run:
  264. $(info GO_VERSION: $(_GO_VERSION))
  265. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  266. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  267. docker run \
  268. --rm \
  269. --tty \
  270. --dns 127.0.0.1 \
  271. $(_TMP_DIR_MOUNT_FLAG) \
  272. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  273. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-wildcard,destination=/certs-wildcard \
  274. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  275. /bin/bash -c "cd /etcd && /certs-wildcard/run.sh && rm -rf m*.etcd"
  276. # Example:
  277. # make build-docker-test -f ./hack/scripts-dev/Makefile
  278. # make compile-with-docker-test -f ./hack/scripts-dev/Makefile
  279. # make build-docker-dns-srv-test -f ./hack/scripts-dev/Makefile
  280. # gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
  281. # make push-docker-dns-srv-test -f ./hack/scripts-dev/Makefile
  282. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  283. # make pull-docker-dns-srv-test -f ./hack/scripts-dev/Makefile
  284. # make docker-dns-srv-test-certs-run -f ./hack/scripts-dev/Makefile
  285. # make docker-dns-srv-test-certs-gateway-run -f ./hack/scripts-dev/Makefile
  286. # make docker-dns-srv-test-certs-wildcard-run -f ./hack/scripts-dev/Makefile
  287. build-docker-dns-srv-test:
  288. $(info GO_VERSION: $(_GO_VERSION))
  289. @cat ./hack/scripts-dev/docker-dns-srv/Dockerfile | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  290. > ./hack/scripts-dev/docker-dns-srv/.Dockerfile
  291. docker build \
  292. --tag gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  293. --file ./hack/scripts-dev/docker-dns-srv/.Dockerfile \
  294. ./hack/scripts-dev/docker-dns-srv
  295. docker run \
  296. --rm \
  297. --dns 127.0.0.1 \
  298. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  299. /bin/bash -c "/etc/init.d/bind9 start && cat /dev/null >/etc/hosts && dig +noall +answer SRV _etcd-client-ssl._tcp.etcd.local && dig +noall +answer SRV _etcd-server-ssl._tcp.etcd.local && dig +noall +answer m1.etcd.local m2.etcd.local m3.etcd.local"
  300. push-docker-dns-srv-test:
  301. $(info GO_VERSION: $(_GO_VERSION))
  302. gcloud docker -- push gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION)
  303. pull-docker-dns-srv-test:
  304. $(info GO_VERSION: $(_GO_VERSION))
  305. docker pull gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION)
  306. docker-dns-srv-test-certs-run:
  307. $(info GO_VERSION: $(_GO_VERSION))
  308. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  309. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  310. docker run \
  311. --rm \
  312. --tty \
  313. --dns 127.0.0.1 \
  314. $(_TMP_DIR_MOUNT_FLAG) \
  315. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  316. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns-srv/certs,destination=/certs \
  317. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  318. /bin/bash -c "cd /etcd && /certs/run.sh && rm -rf m*.etcd"
  319. docker-dns-srv-test-certs-gateway-run:
  320. $(info GO_VERSION: $(_GO_VERSION))
  321. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  322. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  323. docker run \
  324. --rm \
  325. --tty \
  326. --dns 127.0.0.1 \
  327. $(_TMP_DIR_MOUNT_FLAG) \
  328. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  329. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns-srv/certs-gateway,destination=/certs-gateway \
  330. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  331. /bin/bash -c "cd /etcd && /certs-gateway/run.sh && rm -rf m*.etcd"
  332. docker-dns-srv-test-certs-wildcard-run:
  333. $(info GO_VERSION: $(_GO_VERSION))
  334. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  335. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  336. docker run \
  337. --rm \
  338. --tty \
  339. --dns 127.0.0.1 \
  340. $(_TMP_DIR_MOUNT_FLAG) \
  341. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  342. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns-srv/certs-wildcard,destination=/certs-wildcard \
  343. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  344. /bin/bash -c "cd /etcd && /certs-wildcard/run.sh && rm -rf m*.etcd"