diff --git a/.gitignore b/.gitignore index 3881ffc48e..b7e02bc24a 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,7 @@ scope.tar prog/scope docker/scope docker/docker.tgz +docker/docker docker/weave docker/runsvinit extras/fixprobe/fixprobe diff --git a/Makefile b/Makefile index 33ebb7354b..c1bd7e0bdd 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ 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 cp $(SCOPE_EXE) $(RUNSVINIT) docker/ cp $(DOCKER_DISTRIB) docker/docker.tgz + cd docker && tar -xvzf docker.tgz $(SUDO) docker build -t $(SCOPE_IMAGE) docker/ $(SUDO) docker tag $(SCOPE_IMAGE) $(SCOPE_IMAGE):$(IMAGE_TAG) $(SUDO) docker save $(SCOPE_IMAGE):latest > $@ diff --git a/docker/Dockerfile b/docker/Dockerfile index a6d31a75ba..ce748a579c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,7 +4,7 @@ LABEL works.weave.role=system WORKDIR /home/weave RUN apk add --update bash runit conntrack-tools iproute2 util-linux curl && \ rm -rf /var/cache/apk/* -ADD ./docker.tgz / +ADD ./docker/docker /usr/local/bin/docker ADD ./demo.json / ADD ./weave /usr/bin/ COPY ./scope ./runsvinit ./entrypoint.sh /home/weave/