forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makefile, test and scripts updates to use go toolchain instead of baz…
…el. (istio#2220) Automatic merge from submit-queue. makefile, test and scripts updates to use go toolchain instead of bazel. Multiple changes to improve build and testing with the go toolchain. - presubmit changes to use go tools. - stop using the k8s config linked from the user home to some dir that gets picked by bazel. It is pretty dangerous and flaky - unit tests are actually run against whatever cluster the developer has set, may affect a live cluster. It also pollutes the source tree and is not standard go. Refactored the files using config to use a common method. - script equivalent with the circleci local unit test env, consisting of etcd+apiserver. - checkin few missing files, pending Dougz full move to make/shell generation for automation. Current circleci build simply excludes the tests. ```release-note - istio builds using go toolchain instead of bazel. ```
- Loading branch information
1 parent
cdbdb15
commit 2786139
Showing
88 changed files
with
1,691 additions
and
794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Builder version | ||
VERSION ?= go1.9-k8s1.7.4 | ||
PROJECT ?= istio | ||
HUB ?= | ||
|
||
image: | ||
docker build -t ${HUB}${PROJECT}/ci:$(VERSION) -f Dockerfile . | ||
|
||
push: | ||
docker push "${HUB}${PROJECT}/ci:$(VERSION)" | ||
|
||
run: | ||
docker run --rm -u $(shell id -u) -it \ | ||
-v ${GOPATH}:${GOPATH} \ | ||
-w ${PWD} \ | ||
-e USER=${USER} \ | ||
--entrypoint /bin/bash \ | ||
${HUB}${PROJECT}/ci:$(VERSION) | ||
|
||
|
||
.PHONY: image push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.