From 5b04efac7c1c89df010d93bb6c8642b168a2ad3d Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 2 Jun 2015 14:04:02 +0100 Subject: [PATCH] move weaver --- .gitignore | 2 +- Makefile | 8 ++++---- bin/release | 2 +- {weaver => prog/weaver}/Dockerfile | 0 {weaver => prog/weaver}/main.go | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename {weaver => prog/weaver}/Dockerfile (100%) rename {weaver => prog/weaver}/main.go (100%) diff --git a/.gitignore b/.gitignore index 5181a3b4..40c314a9 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ coverage.html *~ # Project specific -weaver/weaver +prog/weaver/weaver prog/weavedns/weavedns prog/weaveproxy/weaveproxy prog/sigproxy/sigproxy diff --git a/Makefile b/Makefile index 0576f103..316e1eb5 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ SUDO=sudo DOCKERHUB_USER=weaveworks WEAVE_VERSION=git-$(shell git rev-parse --short=12 HEAD) -WEAVER_EXE=weaver/weaver +WEAVER_EXE=prog/weaver/weaver WEAVEDNS_EXE=prog/weavedns/weavedns WEAVEPROXY_EXE=prog/weaveproxy/weaveproxy SIGPROXY_EXE=prog/sigproxy/sigproxy @@ -52,7 +52,7 @@ $(WEAVER_EXE) $(WEAVEDNS_EXE) $(WEAVEPROXY_EXE) $(WEAVEWAIT_EXE): common/*.go co false; \ } -$(WEAVER_EXE): router/*.go ipam/*.go ipam/*/*.go weaver/main.go +$(WEAVER_EXE): router/*.go ipam/*.go ipam/*/*.go prog/weaver/main.go $(WEAVEDNS_EXE): nameserver/*.go prog/weavedns/main.go $(WEAVEPROXY_EXE): proxy/*.go prog/weaveproxy/main.go $(WEAVEWAIT_EXE): prog/weavewait/*.go @@ -62,8 +62,8 @@ $(WEAVEWAIT_EXE): prog/weavewait/*.go $(SIGPROXY_EXE): prog/sigproxy/main.go go build -o $@ ./$(@D) -$(WEAVER_EXPORT): weaver/Dockerfile $(WEAVER_EXE) - $(SUDO) docker build -t $(WEAVER_IMAGE) weaver +$(WEAVER_EXPORT): prog/weaver/Dockerfile $(WEAVER_EXE) + $(SUDO) docker build -t $(WEAVER_IMAGE) prog/weaver $(SUDO) docker save $(WEAVER_IMAGE):latest > $@ $(WEAVEDNS_EXPORT): prog/weavedns/Dockerfile $(WEAVEDNS_EXE) diff --git a/bin/release b/bin/release index 664f5041..2e34a3f1 100755 --- a/bin/release +++ b/bin/release @@ -61,7 +61,7 @@ build() { fi ## Run tests with the distributables, including version check - v=$(./weaver/weaver --version | grep -o '[0-9].*') + v=$(./prog/weaver/weaver --version | grep -o '[0-9].*') if ! [ "$v" == "$VERSION" ]; then echo "Version of distributable "$v" does not match release version $VERSION" >&2 exit 1 diff --git a/weaver/Dockerfile b/prog/weaver/Dockerfile similarity index 100% rename from weaver/Dockerfile rename to prog/weaver/Dockerfile diff --git a/weaver/main.go b/prog/weaver/main.go similarity index 100% rename from weaver/main.go rename to prog/weaver/main.go