From 05d9cf8235b2f970d783fe14704d89cdb2485b9d Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 20 Apr 2017 16:43:42 +0000 Subject: [PATCH] Remove some things we don't want in the v2 plugin image --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 8374dc80..b9b8ce69 100644 --- a/Makefile +++ b/Makefile @@ -274,6 +274,8 @@ $(PLUGIN_UPTODATE): prog/net-plugin/launch.sh prog/net-plugin/config.json $(WEAV mkdir $(PLUGIN_WORK_DIR) $(SUDO) docker export $(PLUGIN_BUILD_IMG) | tar -x -C $(PLUGIN_WORK_DIR) $(SUDO) docker rm -f $(PLUGIN_BUILD_IMG) +# get rid of a few bulky things we don't need in the v2 plugin image + rm $(PLUGIN_WORK_DIR)/home/weave/weaveproxy $(PLUGIN_WORK_DIR)/home/weave/sigproxy $(PLUGIN_WORK_DIR)/usr/bin/docker cp prog/net-plugin/launch.sh $(PLUGIN_WORK_DIR)/home/weave/launch.sh -$(SUDO) docker plugin disable $(PLUGIN_IMAGE):$(WEAVE_VERSION) 2>/dev/null -$(SUDO) docker plugin rm $(PLUGIN_IMAGE):$(WEAVE_VERSION) 2>/dev/null