launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #28414
[Merge] ~cjwatson/lpbuildbot-worker:clean-container into lpbuildbot-worker:main
Colin Watson has proposed merging ~cjwatson/lpbuildbot-worker:clean-container into lpbuildbot-worker:main.
Commit message:
Clean apt cache after installing packages
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/lpbuildbot-worker/+git/lpbuildbot-worker/+merge/421455
Let's make the images a little smaller.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/lpbuildbot-worker:clean-container into lpbuildbot-worker:main.
diff --git a/create-lp-tests-lxd b/create-lp-tests-lxd
index 8e2e916..1d2f93b 100755
--- a/create-lp-tests-lxd
+++ b/create-lp-tests-lxd
@@ -177,6 +177,7 @@ def install_code(container, series, directory):
container,
["apt-get", "install", "-y"] + LP_DEB_DEPENDENCIES,
)
+ _exec(container, ["apt-get", "clean"])
print("User configuration")
_exec(