-
Notifications
You must be signed in to change notification settings - Fork 2k
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
add Makefile #3
add Makefile #3
Conversation
I think we should try and keep "targets that run inside a container" in a separate file from "targets that build images or run containers". Anyone who wants to run the "inside a container" targets on their host can do that by pointing at the right Maybe we can have |
dockerfiles/Dockerfile.build
Outdated
@@ -2,6 +2,7 @@ | |||
FROM golang:1.8-alpine | |||
|
|||
RUN apk add -U git | |||
RUN apk add -U make |
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.
Looks like formatting is off a bit here because of tabs vs spaces
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.
Thx! On it.
Makefile
Outdated
|
||
# build the cli | ||
build: | ||
go build -o ./build/docker ./cmd/docker |
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.
To build all the binaries we can do this:
gox -output build/docker-{{.OS}}-{{.Arch}}
-osarch="linux/arm linux/amd64 darwin/amd64 windows/amd64"
./cmd/docker
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.
Thanks! Used it for the "cross" target :)
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.
One more small comment, and I would be good to squash to a single commit
dockerfiles/Dockerfile.build
Outdated
@@ -2,6 +2,7 @@ | |||
FROM golang:1.8-alpine | |||
|
|||
RUN apk add -U git | |||
RUN apk add -U make |
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.
This should be one line:
RUN apk add -U git make
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.
on it :)
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.
LGTM with a squash
3b75584
to
9cc53cc
Compare
Signed-off-by: Gaetan de Villele <[email protected]>
9cc53cc
to
fb41398
Compare
Add deploy command, kubernetes version
[20.10 backport] Update Go to 1.16.8
Started to write a Makefile for this repo.
This is still WIP, comments are welcome.
@dnephin Thanks for your Dockerfile! #1
Signed-off-by: Gaetan de Villele [email protected]