Merge pull request #2954 from weaveworks/issues/2953-reorg-images

Issues/2953 reorg images
This commit is contained in:
Marc Carré authored and GitHub committed 2017-05-15 16:25:58 +01:00
commit 71d6e881f2
5 files changed
+38 -36

No files matched your search

+2 -2
View File
@@ -53,14 +53,14 @@ testing/runner/runner
releases releases
.*.uptodate .*.uptodate
weave*.tar.gz weave*.tar.gz
prog/weaveexec/weave prog/weaver/weave
prog/weaveexec/weavehosts prog/weaveexec/weavehosts
prog/weaveexec/weaveproxy prog/weaveexec/weaveproxy
prog/weaveexec/weavewait prog/weaveexec/weavewait
prog/weaveexec/weavewait_noop prog/weaveexec/weavewait_noop
prog/weaveexec/weavewait_nomcast prog/weaveexec/weavewait_nomcast
prog/weaveexec/sigproxy prog/weaveexec/sigproxy
prog/weaveexec/weaveutil prog/weaver/weaveutil
prog/weaveexec/docker* prog/weaveexec/docker*
Vagrantfile.local Vagrantfile.local
test/tls/tls test/tls/tls
+4 -4
View File
@@ -250,17 +250,17 @@ else
endif endif
# The targets below builds the weave images # The targets below builds the weave images
$(WEAVER_UPTODATE): prog/weaver/Dockerfile.$(DOCKERHUB_USER) $(WEAVER_EXE) $(WEAVEEXEC_UPTODATE) $(WEAVER_UPTODATE): prog/weaver/Dockerfile.$(DOCKERHUB_USER) $(WEAVER_EXE) weave $(WEAVEUTIL_EXE)
cp $(WEAVEUTIL_EXE) prog/weaver/weaveutil
cp weave prog/weaver/weave
$(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker build -f prog/weaver/Dockerfile.$(DOCKERHUB_USER) -t $(WEAVER_IMAGE) prog/weaver $(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker build -f prog/weaver/Dockerfile.$(DOCKERHUB_USER) -t $(WEAVER_IMAGE) prog/weaver
touch $@ touch $@
$(WEAVEEXEC_UPTODATE): prog/weaveexec/Dockerfile.$(DOCKERHUB_USER) prog/weaveexec/symlink $(DOCKER_DISTRIB) weave $(SIGPROXY_EXE) $(WEAVEWAIT_EXE) $(WEAVEWAIT_NOOP_EXE) $(WEAVEWAIT_NOMCAST_EXE) $(WEAVEUTIL_EXE) $(WEAVEEXEC_UPTODATE): prog/weaveexec/Dockerfile.$(DOCKERHUB_USER) prog/weaveexec/symlink $(DOCKER_DISTRIB) $(SIGPROXY_EXE) $(WEAVEWAIT_EXE) $(WEAVEWAIT_NOOP_EXE) $(WEAVEWAIT_NOMCAST_EXE) $(WEAVER_UPTODATE)
cp weave prog/weaveexec/weave
cp $(SIGPROXY_EXE) prog/weaveexec/sigproxy cp $(SIGPROXY_EXE) prog/weaveexec/sigproxy
cp $(WEAVEWAIT_EXE) prog/weaveexec/weavewait cp $(WEAVEWAIT_EXE) prog/weaveexec/weavewait
cp $(WEAVEWAIT_NOOP_EXE) prog/weaveexec/weavewait_noop cp $(WEAVEWAIT_NOOP_EXE) prog/weaveexec/weavewait_noop
cp $(WEAVEWAIT_NOMCAST_EXE) prog/weaveexec/weavewait_nomcast cp $(WEAVEWAIT_NOMCAST_EXE) prog/weaveexec/weavewait_nomcast
cp $(WEAVEUTIL_EXE) prog/weaveexec/weaveutil
tar -xf $(DOCKER_DISTRIB) usr/local/bin/docker -O > prog/weaveexec/docker tar -xf $(DOCKER_DISTRIB) usr/local/bin/docker -O > prog/weaveexec/docker
chmod +x prog/weaveexec/docker chmod +x prog/weaveexec/docker
$(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker build -f prog/weaveexec/Dockerfile.$(DOCKERHUB_USER) -t $(WEAVEEXEC_IMAGE) prog/weaveexec $(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker build -f prog/weaveexec/Dockerfile.$(DOCKERHUB_USER) -t $(WEAVEEXEC_IMAGE) prog/weaveexec
+3 -26
View File
@@ -1,32 +1,9 @@
FROM ALPINE_BASEIMAGE FROM DOCKERHUB_USER/weaveARCH_EXT
# If we're building for another architecture than amd64, the CROSS_BUILD_ placeholder is removed so e.g. CROSS_BUILD_COPY turns into COPY
# If we're building normally, for amd64, CROSS_BUILD lines are removed
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
LABEL maintainer "Weaveworks Inc <help@weave.works>"
LABEL works.weave.role=system \
org.label-schema.name="Weave Net" \
org.label-schema.description="Weave Net creates a virtual network that connects Docker containers across multiple hosts and enables their automatic discovery" \
org.label-schema.url="https://weave.works" \
org.label-schema.vcs-url="https://github.com/weaveworks/weave" \
org.label-schema.vendor="Weaveworks"
ENTRYPOINT ["/home/weave/sigproxy", "/home/weave/weave"] ENTRYPOINT ["/home/weave/sigproxy", "/home/weave/weave"]
RUN apk add --update \ ADD ./sigproxy ./symlink /home/weave/
curl \ ADD ./docker /usr/bin/
ethtool \
iptables \
ipset \
iproute2 \
util-linux \
conntrack-tools \
bind-tools \
&& rm -rf /var/cache/apk/*
ADD ./weave ./sigproxy ./symlink /home/weave/
ADD ./weaveutil ./docker /usr/bin/
ADD ./weavewait /w/w ADD ./weavewait /w/w
ADD ./weavewait_noop /w-noop/w ADD ./weavewait_noop /w-noop/w
ADD ./weavewait_nomcast /w-nomcast/w ADD ./weavewait_nomcast /w-nomcast/w
+28 -2
View File
@@ -1,5 +1,31 @@
FROM DOCKERHUB_USER/weaveexecARCH_EXT FROM ALPINE_BASEIMAGE
ADD ./weaver /home/weave/
# If we're building for another architecture than amd64, the CROSS_BUILD_ placeholder is removed so e.g. CROSS_BUILD_COPY turns into COPY
# If we're building normally, for amd64, CROSS_BUILD lines are removed
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
LABEL maintainer "Weaveworks Inc <help@weave.works>"
LABEL works.weave.role=system \
org.label-schema.name="Weave Net" \
org.label-schema.description="Weave Net creates a virtual network that connects Docker containers across multiple hosts and enables their automatic discovery" \
org.label-schema.url="https://weave.works" \
org.label-schema.vcs-url="https://github.com/weaveworks/weave" \
org.label-schema.vendor="Weaveworks"
RUN apk add --update \
curl \
ethtool \
iptables \
ipset \
iproute2 \
util-linux \
conntrack-tools \
bind-tools \
&& rm -rf /var/cache/apk/*
ADD ./weave ./weaver /home/weave/
ADD ./weaveutil /usr/bin/
ADD weavedata.db /weavedb/ ADD weavedata.db /weavedb/
COPY ca-certificates.crt /etc/ssl/certs/ COPY ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/home/weave/weaver"] ENTRYPOINT ["/home/weave/weaver"]
WORKDIR /home/weave
+1 -2
View File
@@ -218,8 +218,6 @@ kill_container() {
# main # main
###################################################################### ######################################################################
check_docker_version
[ "$1" = "--local" ] && shift 1 && IS_LOCAL=1 [ "$1" = "--local" ] && shift 1 && IS_LOCAL=1
# "--help|help" are special because we always want to process them # "--help|help" are special because we always want to process them
@@ -244,6 +242,7 @@ elif [ "$1" = "env" -a "$2" = "--restore" ] ; then
fi fi
if [ -z "$IS_LOCAL" ] ; then if [ -z "$IS_LOCAL" ] ; then
check_docker_version
exec_remote "$@" exec_remote "$@"
exit $? exit $?
fi fi