-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update flags * Fix gofmt error * Update testing * Update README.md * Update function name * Use go module to replace dep
- Loading branch information
Showing
28 changed files
with
1,257 additions
and
1,358 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 |
---|---|---|
|
@@ -12,6 +12,5 @@ vendor/ | |
out/ | ||
tmp/ | ||
|
||
pkg/client/listers/ | ||
pkg/client/informers/ | ||
.vscode/ | ||
|
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
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Building stage | ||
FROM inwinstack/golang:1.11-alpine AS build-env | ||
FROM kairen/golang-dep:1.12-alpine AS build | ||
LABEL maintainer="Kyle Bai <[email protected]>" | ||
|
||
ENV GOPATH "/go" | ||
ENV PROJECT_PATH "$GOPATH/src/github.com/inwinstack/ip-assigner" | ||
ENV GO111MODULE "on" | ||
|
||
COPY . $PROJECT_PATH | ||
RUN cd $PROJECT_PATH && \ | ||
make dep && \ | ||
make && mv out/controller /tmp/controller | ||
|
||
# Running stage | ||
FROM alpine:3.7 | ||
COPY --from=build-env /tmp/controller /bin/controller | ||
ENTRYPOINT ["controller"] | ||
COPY --from=build /tmp/controller /bin/controller | ||
ENTRYPOINT ["controller"] |
Oops, something went wrong.