- 
                Notifications
    You must be signed in to change notification settings 
- Fork 485
Osxcompat 1 #377
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
Osxcompat 1 #377
Conversation
| DEV_SUFFIX?=-git | ||
| BUILD_DATE?=$(shell date --iso-8601) | ||
| OSX=$(filter Darwin,$(shell uname)) | ||
| BUILD_DATE?=$(shell date +%Y-%m-%dT%H:%M:%S%z) | 
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.
Changed to be compat with OSX that does not have the GNU date util
        
          
                Makefile
              
                Outdated
          
        
      | test: gofmt gomoqs ## Runs code quality pipelines (gofmt, tests, coverage, lint, etc) | ||
| go test github.com/cloudnativelabs/kube-router github.com/cloudnativelabs/kube-router/app/... github.com/cloudnativelabs/kube-router/utils/ | ||
| ifeq "$(BUILD_IN_DOCKER)" "true" | ||
| $(DOCKER) run -v $(PWD):/go/src/github.com/cloudnativelabs/kube-router -w /go/src/github.com/cloudnativelabs/kube-router golang:alpine \ | 
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.
I think the docker image here should be at a fixed go version (whatver is being released with kube-router)
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.
agreed.
if you look at how we compile gobgp further down in the makefile, it's a unspecified docker image there as well that needs to be fixed
I'll add a variable that holds the version for golang:alpine and make sure its used in the whole makefile
| Locked to golang:1.8.7-alpine, based on what Golang version we built the latest 0.1.0 release with | 
| LGTM | 
Adde option to build in Docker, also a small check so it doesn't ask for sudo password for Docker when on OSX
make BUILD_IN_DOCKER=truewill run the go test & kube-router build in golang:alpine, gobgp is already build in docker container.