Skip to content

Commit

Permalink
Simplify copying of weaveutil
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Acosta committed Feb 24, 2017
1 parent a60192d commit 9c2009f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ docker/weave:
chmod u+x docker/weave

docker/weaveutil:
docker pull weaveworks/weaveexec:$(WEAVENET_VERSION)
docker create --name=throwaway weaveworks/weaveexec:$(WEAVENET_VERSION)
docker cp throwaway:/usr/bin/weaveutil docker/weaveutil
docker rm throwaway
$(SUDO) docker run --rm --entrypoint=cat weaveworks/weaveexec:$(WEAVENET_VERSION) /usr/bin/weaveutil > $@
chmod +x $@

$(SCOPE_EXPORT): $(SCOPE_EXE) $(DOCKER_DISTRIB) docker/weave docker/weaveutil $(RUNSVINIT) docker/Dockerfile docker/demo.json docker/run-app docker/run-probe docker/entrypoint.sh
cp $(SCOPE_EXE) $(RUNSVINIT) docker/
Expand Down

0 comments on commit 9c2009f

Please sign in to comment.