Move files around in preparation for melding into weave code
* library code will go in weave/nameserver/ * main.go for the server goes in weavedns/ with the containerising
This commit is contained in:
1 parent
fdcb960cdd
commit
8469fea215
17 files changed
No files matched your search
@@ -0,0 +1,19 @@
|
||||
.DEFAULT: all
|
||||
|
||||
all: server-image
|
||||
|
||||
weavedns: ../server/*.go ../main.go
|
||||
go get -tags netgo ../ && go build -tags netgo -ldflags '-linkmode external -extldflags "-static"' -o $@ -v ../
|
||||
|
||||
.PHONY: server-image
|
||||
|
||||
server-image: /var/tmp/weavedns.tar
|
||||
|
||||
/var/tmp/weavedns.tar: Dockerfile weavedns
|
||||
sudo -E docker build -t zettio/weavedns .
|
||||
sudo -E docker save zettio/weavedns > $@
|
||||
|
||||
clean:
|
||||
-sudo docker rmi zettio/weavedns
|
||||
rm -f weavedns
|
||||
rm -f /var/tmp/weavedns.tar
|
||||
Reference in new issue
Block a user