-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefile: initial commit #8628
Makefile: initial commit #8628
Conversation
e8f2a5c
to
b8871c4
Compare
e96bb2d
to
7aa1522
Compare
c66caa4
to
c14ad35
Compare
@xiang90 @fanminshi Please review. This is an initial step to test etcd with DNS/SRV (helpful for debugging issues like #8608). Also Currently, we hard-code Go version for all branches in CIs, so it is impossible to test with correct Go versions. |
b7dc10f
to
9c100ff
Compare
Initial commit to run DNS/SRV tests. Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@@ -0,0 +1,145 @@ | |||
.PHONY: build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this # run makefile from repo root
?
Makefile
Outdated
--volume=`pwd`/bin:/etcd \ | ||
--volume=`pwd`/integration/fixtures:/certs \ | ||
gcr.io/etcd-development/etcd-dns-test:$(_GO_VERSION) \ | ||
/bin/bash -c "pushd /etcd && /run.sh && rm -rf m*.etcd && popd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use cd instead of pushd?
Makefile
Outdated
--rm \ | ||
--volume=`pwd`/:/etcd \ | ||
gcr.io/etcd-development/etcd-test:$(_GO_VERSION) \ | ||
/bin/bash -c "pushd /etcd && GO_BUILD_FLAGS=-v ./build && ./bin/etcd --version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/pushd/cd/ ?
lgtm after nits |
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@gyuho Having some trouble with this docker build:
Still working on getting more detailed logging from a bind9 init.d start failure. Any idea what might be wrong? |
@jpbetz Hmm works for me?
|
@gyuho What version of bind9 did apt install for you?
|
Looks same
? Maybe |
Works in my GCP VM too.
|
@gyuho It's something with that older docker version. Networking maybe? Everything works with a more recent one. I'm all set now. Thanks! |
|
||
# build base container image for testing on Linux | ||
docker-test-build: | ||
docker build --tag gcr.io/etcd-development/etcd-test:$(_GO_VERSION) --file ./Dockerfile-test . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to have some way to distinguish the docker image architecture. Maybe something like gcr.io/etcd-development/etcd-test:$(_GO_VERSION)-$(ARCH)
., and also have arch specific docker files.
For #8502.
First step to make DNS/SRV tests easier to run.