-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Cleanup, alpine and amd64 only UDP #860
Conversation
f62eb26
to
df4dfb9
Compare
Dockerfile.amd64
Outdated
@@ -1,12 +1,11 @@ | |||
FROM frolvlad/alpine-glibc | |||
FROM alpine | |||
|
|||
MAINTAINER Tom Denham <[email protected]> |
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.
nit: MAINTAINER
has been deprecated, we should probably switch to LABEL
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.
Already done in another PR 😄
endif | ||
|
||
# Go version to use for builds | ||
GO_VERSION=1.8.3 |
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.
any reason we're not using Go 1.9.2?
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 don't want to introduce too many changes in this PR. I'll rev the Go version in a different PR
@@ -0,0 +1,87 @@ | |||
// Copyright 2015 flannel authors |
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.
2017
"encoding/json" | ||
"fmt" | ||
|
||
"golang.org/x/net/context" |
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.
context has been move to "context"
as part of the std lib since Go 1.7
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.
Sure, but it hasn't been updated in flannel yet and that change shouldn't be done in this PR
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.
couple of nits but overall LGTM
Reorganize the Makefile to have different sections for build, test, release and development. Move to using Alpine linux as the base image. This means we no longer need to build iptables and it makes it easier to install other packages in future (e.g. strongswan). To allow alpine to be used, static binaries for all platforms are needed. It's not possible to create these for the UDP backend for non-amd64 platforms. This is because it relies on CGO. So this PR makes the UDP backend work on amd64 only.
df4dfb9
to
3e883b8
Compare
Reorganize the Makefile to have different sections for build, test,
release and development.
Move to using Alpine linux as the base image. This means we no longer
need to build iptables and it makes it easier to install other packages
in future (e.g. strongswan).
To allow alpine to be used, static binaries for all platforms are
needed. It's not possible to create these for the UDP backend for
non-amd64 platforms. This is because it relies on CGO. So this PR makes
the UDP backend work on amd64 only.