forked from aledbf/kube-keepalived-vip
-
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.
- Loading branch information
Showing
146 changed files
with
8,870 additions
and
5,488 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
kube-keepalived-vip | ||
rootfs/kube-keepalived-vip | ||
rootfs/keepalived.tar.gz |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 +1,28 @@ | ||
all: push | ||
|
||
# 0.0 shouldn't clobber any release builds, current "latest" is 0.16 | ||
TAG = 0.16 | ||
# 0.0 shouldn't clobber any release builds, current "latest" is 0.17 | ||
TAG = 0.17 | ||
PREFIX = aledbf/kube-keepalived-vip | ||
BUILD_IMAGE = build-keepalived | ||
PKG = github.com/aledbf/kube-keepalived-vip | ||
|
||
controller: clean | ||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s -w' -o kube-keepalived-vip | ||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s -w' \ | ||
-o rootfs/kube-keepalived-vip \ | ||
${PKG}/pkg/cmd | ||
|
||
container: controller keepalived | ||
docker build -t $(PREFIX):$(TAG) . | ||
docker build -t $(PREFIX):$(TAG) rootfs | ||
|
||
keepalived: | ||
docker build -t $(BUILD_IMAGE):$(TAG) build | ||
docker create --name $(BUILD_IMAGE) $(BUILD_IMAGE):$(TAG) true | ||
# docker cp semantics changed between 1.7 and 1.8, so we cp the file to cwd and rename it. | ||
docker cp $(BUILD_IMAGE):/keepalived.tar.gz . | ||
docker cp $(BUILD_IMAGE):/keepalived.tar.gz rootfs | ||
docker rm -f $(BUILD_IMAGE) | ||
|
||
push: container | ||
docker -- push $(PREFIX):$(TAG) | ||
docker push $(PREFIX):$(TAG) | ||
|
||
clean: | ||
rm -f kube-keepalived-vip |
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
Oops, something went wrong.