summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-02 11:46:11 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-13 16:49:05 +0100
commite359b0ee79cb4edf6c59af0b4c411ec2d5f808c5 (patch)
tree84b232091721cb26a6f674250e37d46eaa7aa112 /Makefile
parent109c02002baf3c2d8eac57027f29f6c74e5233b5 (diff)
downloadtrove-setup-e359b0ee79cb4edf6c59af0b4c411ec2d5f808c5.tar.gz
Add automatic garbage collection service to Trovebaserock/sam/artifact-cache-garbage-collect-v3
We are now using Trove as an artifact server for the Mason continuous delivery system, which can fill up the disk pretty quickly. This adds a rudimetary system for cleaning up old artifacts from an artifact cache server. Note that it does not have any smarts about what to remove other than checking the 'mtime', If you have important release artifacts in the artifact cache, don't run `trove-gc` or enable the trove-garbage-collect service. It wraps the `morph gc` command, currently, so Morph is required on the system. Morph is included in Trove systems via the 'tools' stratum right now. It is hardcoded to remove artifacts until there is at least 15GB of free disk space, and to run once an hour. No cleanup of Git or Lorry data is done.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 134436b..8943895 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
install:
+ mkdir -p "${DESTDIR}/usr/bin"
+ install -m 755 bin/trove-gc "${DESTDIR}/usr/bin"
mkdir -p "${DESTDIR}/usr/lib/trove-setup/ansible"
cp -r ansible/* "${DESTDIR}/usr/lib/trove-setup/ansible"
mkdir -p "${DESTDIR}/usr/lib/systemd/system/multi-user.target.wants"