Skip to content

Commit

Permalink
Install weaveutil so we don't have to run it via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham authored and Alfonso Acosta committed Feb 24, 2017
1 parent 0a3c58b commit a60192d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ prog/scope
docker/scope
docker/docker.tgz
docker/weave
docker/weaveutil
docker/runsvinit
extras/fixprobe/fixprobe
extras/fixprobe/*.json
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ docker/weave:
curl -L https://github.com/weaveworks/weave/releases/download/v$(WEAVENET_VERSION)/weave -o docker/weave
chmod u+x docker/weave

$(SCOPE_EXPORT): $(SCOPE_EXE) $(DOCKER_DISTRIB) docker/weave $(RUNSVINIT) docker/Dockerfile docker/demo.json docker/run-app docker/run-probe docker/entrypoint.sh
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

$(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/
cp $(DOCKER_DISTRIB) docker/docker.tgz
$(SUDO) docker build -t $(SCOPE_IMAGE) docker/
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --update bash runit conntrack-tools iproute2 util-linux curl && \
rm -rf /var/cache/apk/*
ADD ./docker.tgz /
ADD ./demo.json /
ADD ./weave /usr/bin/
ADD ./weave ./weaveutil /usr/bin/
COPY ./scope ./runsvinit ./entrypoint.sh /home/weave/
COPY ./run-app /etc/service/app/run
COPY ./run-probe /etc/service/probe/run
Expand Down

0 comments on commit a60192d

Please sign in to comment.