Makefile 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. # run from repository root
  2. # Example:
  3. # make clean -f ./hack/scripts-dev/Makefile
  4. # make build -f ./hack/scripts-dev/Makefile
  5. .PHONY: build
  6. build:
  7. GO_BUILD_FLAGS="-v" ./build
  8. ./bin/etcd --version
  9. ETCDCTL_API=3 ./bin/etcdctl version
  10. clean:
  11. rm -f ./codecov
  12. rm -rf ./agent-*
  13. rm -rf ./covdir
  14. rm -f ./*.log
  15. rm -f ./bin/Dockerfile-release
  16. rm -rf ./bin/*.etcd
  17. rm -rf ./gopath
  18. rm -rf ./release
  19. rm -f ./integration/127.0.0.1:* ./integration/localhost:*
  20. rm -f ./clientv3/integration/127.0.0.1:* ./clientv3/integration/localhost:*
  21. rm -f ./clientv3/ordering/127.0.0.1:* ./clientv3/ordering/localhost:*
  22. _GO_VERSION = 1.9.3
  23. ifdef GO_VERSION
  24. _GO_VERSION = $(GO_VERSION)
  25. endif
  26. _ETCD_VERSION ?= $(shell git rev-parse --short HEAD || echo "GitNotFound")
  27. ifdef ETCD_VERSION
  28. _ETCD_VERSION = $(ETCD_VERSION)
  29. endif
  30. TEST_SUFFIX = $(shell date +%s | base64 | head -c 15)
  31. _TEST_OPTS = PASSES='unit'
  32. ifdef TEST_OPTS
  33. _TEST_OPTS = $(TEST_OPTS)
  34. endif
  35. _TMP_DIR_MOUNT_FLAG = --mount type=tmpfs,destination=/tmp
  36. ifdef HOST_TMP_DIR
  37. _TMP_DIR_MOUNT_FLAG = --mount type=bind,source=$(HOST_TMP_DIR),destination=/tmp
  38. endif
  39. # Example:
  40. # GO_VERSION=1.8.5 make build-docker-test -f ./hack/scripts-dev/Makefile
  41. # make build-docker-test -f ./hack/scripts-dev/Makefile
  42. # gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
  43. # GO_VERSION=1.8.5 make push-docker-test -f ./hack/scripts-dev/Makefile
  44. # make push-docker-test -f ./hack/scripts-dev/Makefile
  45. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  46. # GO_VERSION=1.8.5 make pull-docker-test -f ./hack/scripts-dev/Makefile
  47. # make pull-docker-test -f ./hack/scripts-dev/Makefile
  48. build-docker-test:
  49. $(info GO_VERSION: $(_GO_VERSION))
  50. @cat ./Dockerfile-test | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  51. > ./.Dockerfile-test
  52. docker build \
  53. --tag gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  54. --file ./.Dockerfile-test .
  55. push-docker-test:
  56. $(info GO_VERSION: $(_GO_VERSION))
  57. gcloud docker -- push gcr.io/etcd-development/etcd-test:go$(_GO_VERSION)
  58. pull-docker-test:
  59. $(info GO_VERSION: $(_GO_VERSION))
  60. docker pull gcr.io/etcd-development/etcd-test:go$(_GO_VERSION)
  61. # Example:
  62. # make build-docker-test -f ./hack/scripts-dev/Makefile
  63. # make compile-with-docker-test -f ./hack/scripts-dev/Makefile
  64. compile-with-docker-test:
  65. $(info GO_VERSION: $(_GO_VERSION))
  66. docker run \
  67. --rm \
  68. --mount type=bind,source=`pwd`,destination=/etcd \
  69. gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  70. /bin/bash -c "cd /etcd && GO_BUILD_FLAGS=-v ./build && ./bin/etcd --version"
  71. # Example:
  72. #
  73. # Local machine:
  74. # TEST_OPTS="PASSES='fmt'" make test -f ./hack/scripts-dev/Makefile
  75. # TEST_OPTS="PASSES='fmt bom dep compile build unit'" make test -f ./hack/scripts-dev/Makefile
  76. # TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional'" make test -f ./hack/scripts-dev/Makefile
  77. # TEST_OPTS="PASSES='build grpcproxy'" make test -f ./hack/scripts-dev/Makefile
  78. #
  79. # Example (test with docker):
  80. # make pull-docker-test -f ./hack/scripts-dev/Makefile
  81. # TEST_OPTS="PASSES='fmt'" make docker-test -f ./hack/scripts-dev/Makefile
  82. # TEST_OPTS="VERBOSE=2 PASSES='unit'" make docker-test -f ./hack/scripts-dev/Makefile
  83. #
  84. # Travis CI (test with docker):
  85. # TEST_OPTS="PASSES='fmt bom dep compile build unit'" make docker-test -f ./hack/scripts-dev/Makefile
  86. #
  87. # Semaphore CI (test with docker):
  88. # TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional'" make docker-test -f ./hack/scripts-dev/Makefile
  89. # 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
  90. # TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'" make docker-test -f ./hack/scripts-dev/Makefile
  91. #
  92. # grpc-proxy tests (test with docker):
  93. # TEST_OPTS="PASSES='build grpcproxy'" make docker-test -f ./hack/scripts-dev/Makefile
  94. # HOST_TMP_DI=/tmp TEST_OPTS="PASSES='build grpcproxy'" make docker-test -f ./hack/scripts-dev/Makefile
  95. .PHONY: test
  96. test:
  97. $(info TEST_OPTS: $(_TEST_OPTS))
  98. $(info log-file: test-$(TEST_SUFFIX).log)
  99. $(_TEST_OPTS) ./test 2>&1 | tee test-$(TEST_SUFFIX).log
  100. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-$(TEST_SUFFIX).log
  101. docker-test:
  102. $(info GO_VERSION: $(_GO_VERSION))
  103. $(info TEST_OPTS: $(_TEST_OPTS))
  104. $(info log-file: test-$(TEST_SUFFIX).log)
  105. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  106. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  107. docker run \
  108. --rm \
  109. $(_TMP_DIR_MOUNT_FLAG) \
  110. --mount type=bind,source=`pwd`,destination=/go/src/github.com/coreos/etcd \
  111. gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  112. /bin/bash -c "$(_TEST_OPTS) ./test 2>&1 | tee test-$(TEST_SUFFIX).log"
  113. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 test-$(TEST_SUFFIX).log
  114. docker-test-coverage:
  115. $(info GO_VERSION: $(_GO_VERSION))
  116. $(info log-file: docker-test-coverage-$(TEST_SUFFIX).log)
  117. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  118. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  119. docker run \
  120. --rm \
  121. $(_TMP_DIR_MOUNT_FLAG) \
  122. --mount type=bind,source=`pwd`,destination=/go/src/github.com/coreos/etcd \
  123. gcr.io/etcd-development/etcd-test:go$(_GO_VERSION) \
  124. /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"
  125. ! egrep "(--- FAIL:|panic: test timed out|appears to have leaked)" -B50 -A10 docker-test-coverage-$(TEST_SUFFIX).log
  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-gateway-run -f ./hack/scripts-dev/Makefile
  203. # make docker-dns-test-certs-wildcard-run -f ./hack/scripts-dev/Makefile
  204. # make docker-dns-test-certs-common-name-auth-run -f ./hack/scripts-dev/Makefile
  205. # make docker-dns-test-certs-common-name-multi-run -f ./hack/scripts-dev/Makefile
  206. build-docker-dns-test:
  207. $(info GO_VERSION: $(_GO_VERSION))
  208. @cat ./hack/scripts-dev/docker-dns/Dockerfile | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  209. > ./hack/scripts-dev/docker-dns/.Dockerfile
  210. docker build \
  211. --tag gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  212. --file ./hack/scripts-dev/docker-dns/.Dockerfile \
  213. ./hack/scripts-dev/docker-dns
  214. docker run \
  215. --rm \
  216. --dns 127.0.0.1 \
  217. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  218. /bin/bash -c "/etc/init.d/bind9 start && cat /dev/null >/etc/hosts && dig etcd.local"
  219. push-docker-dns-test:
  220. $(info GO_VERSION: $(_GO_VERSION))
  221. gcloud docker -- push gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION)
  222. pull-docker-dns-test:
  223. $(info GO_VERSION: $(_GO_VERSION))
  224. docker pull gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION)
  225. docker-dns-test-certs-run:
  226. $(info GO_VERSION: $(_GO_VERSION))
  227. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  228. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  229. docker run \
  230. --rm \
  231. --tty \
  232. --dns 127.0.0.1 \
  233. $(_TMP_DIR_MOUNT_FLAG) \
  234. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  235. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs,destination=/certs \
  236. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  237. /bin/bash -c "cd /etcd && /certs/run.sh && rm -rf m*.etcd"
  238. docker-dns-test-certs-gateway-run:
  239. $(info GO_VERSION: $(_GO_VERSION))
  240. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  241. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  242. docker run \
  243. --rm \
  244. --tty \
  245. --dns 127.0.0.1 \
  246. $(_TMP_DIR_MOUNT_FLAG) \
  247. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  248. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-gateway,destination=/certs-gateway \
  249. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  250. /bin/bash -c "cd /etcd && /certs-gateway/run.sh && rm -rf m*.etcd"
  251. docker-dns-test-certs-wildcard-run:
  252. $(info GO_VERSION: $(_GO_VERSION))
  253. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  254. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  255. docker run \
  256. --rm \
  257. --tty \
  258. --dns 127.0.0.1 \
  259. $(_TMP_DIR_MOUNT_FLAG) \
  260. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  261. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-wildcard,destination=/certs-wildcard \
  262. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  263. /bin/bash -c "cd /etcd && /certs-wildcard/run.sh && rm -rf m*.etcd"
  264. docker-dns-test-certs-common-name-auth-run:
  265. $(info GO_VERSION: $(_GO_VERSION))
  266. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  267. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  268. docker run \
  269. --rm \
  270. --tty \
  271. --dns 127.0.0.1 \
  272. $(_TMP_DIR_MOUNT_FLAG) \
  273. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  274. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-common-name-auth,destination=/certs-common-name-auth \
  275. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  276. /bin/bash -c "cd /etcd && /certs-common-name-auth/run.sh && rm -rf m*.etcd"
  277. docker-dns-test-certs-common-name-multi-run:
  278. $(info GO_VERSION: $(_GO_VERSION))
  279. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  280. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  281. docker run \
  282. --rm \
  283. --tty \
  284. --dns 127.0.0.1 \
  285. $(_TMP_DIR_MOUNT_FLAG) \
  286. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  287. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns/certs-common-name-multi,destination=/certs-common-name-multi \
  288. gcr.io/etcd-development/etcd-dns-test:go$(_GO_VERSION) \
  289. /bin/bash -c "cd /etcd && /certs-common-name-multi/run.sh && rm -rf m*.etcd"
  290. # Example:
  291. # make build-docker-test -f ./hack/scripts-dev/Makefile
  292. # make compile-with-docker-test -f ./hack/scripts-dev/Makefile
  293. # make build-docker-dns-srv-test -f ./hack/scripts-dev/Makefile
  294. # gcloud docker -- login -u _json_key -p "$(cat /etc/gcp-key-etcd-development.json)" https://gcr.io
  295. # make push-docker-dns-srv-test -f ./hack/scripts-dev/Makefile
  296. # gsutil -m acl ch -u allUsers:R -r gs://artifacts.etcd-development.appspot.com
  297. # make pull-docker-dns-srv-test -f ./hack/scripts-dev/Makefile
  298. # make docker-dns-srv-test-certs-run -f ./hack/scripts-dev/Makefile
  299. # make docker-dns-srv-test-certs-gateway-run -f ./hack/scripts-dev/Makefile
  300. # make docker-dns-srv-test-certs-wildcard-run -f ./hack/scripts-dev/Makefile
  301. build-docker-dns-srv-test:
  302. $(info GO_VERSION: $(_GO_VERSION))
  303. @cat ./hack/scripts-dev/docker-dns-srv/Dockerfile | sed s/REPLACE_ME_GO_VERSION/$(_GO_VERSION)/ \
  304. > ./hack/scripts-dev/docker-dns-srv/.Dockerfile
  305. docker build \
  306. --tag gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  307. --file ./hack/scripts-dev/docker-dns-srv/.Dockerfile \
  308. ./hack/scripts-dev/docker-dns-srv
  309. docker run \
  310. --rm \
  311. --dns 127.0.0.1 \
  312. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  313. /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"
  314. push-docker-dns-srv-test:
  315. $(info GO_VERSION: $(_GO_VERSION))
  316. gcloud docker -- push gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION)
  317. pull-docker-dns-srv-test:
  318. $(info GO_VERSION: $(_GO_VERSION))
  319. docker pull gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION)
  320. docker-dns-srv-test-certs-run:
  321. $(info GO_VERSION: $(_GO_VERSION))
  322. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  323. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  324. docker run \
  325. --rm \
  326. --tty \
  327. --dns 127.0.0.1 \
  328. $(_TMP_DIR_MOUNT_FLAG) \
  329. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  330. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns-srv/certs,destination=/certs \
  331. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  332. /bin/bash -c "cd /etcd && /certs/run.sh && rm -rf m*.etcd"
  333. docker-dns-srv-test-certs-gateway-run:
  334. $(info GO_VERSION: $(_GO_VERSION))
  335. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  336. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  337. docker run \
  338. --rm \
  339. --tty \
  340. --dns 127.0.0.1 \
  341. $(_TMP_DIR_MOUNT_FLAG) \
  342. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  343. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns-srv/certs-gateway,destination=/certs-gateway \
  344. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  345. /bin/bash -c "cd /etcd && /certs-gateway/run.sh && rm -rf m*.etcd"
  346. docker-dns-srv-test-certs-wildcard-run:
  347. $(info GO_VERSION: $(_GO_VERSION))
  348. $(info HOST_TMP_DIR: $(HOST_TMP_DIR))
  349. $(info TMP_DIR_MOUNT_FLAG: $(_TMP_DIR_MOUNT_FLAG))
  350. docker run \
  351. --rm \
  352. --tty \
  353. --dns 127.0.0.1 \
  354. $(_TMP_DIR_MOUNT_FLAG) \
  355. --mount type=bind,source=`pwd`/bin,destination=/etcd \
  356. --mount type=bind,source=`pwd`/hack/scripts-dev/docker-dns-srv/certs-wildcard,destination=/certs-wildcard \
  357. gcr.io/etcd-development/etcd-dns-srv-test:go$(_GO_VERSION) \
  358. /bin/bash -c "cd /etcd && /certs-wildcard/run.sh && rm -rf m*.etcd"