aboutsummaryrefslogtreecommitdiffstats
path: root/build/test/dummy-graphite.start
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-09-20 19:41:56 +0200
committerKristian Lyngstol <kly@kly.no>2016-09-20 19:41:56 +0200
commitd47cef0006b93680a8b5b77772154d7644ebbcb5 (patch)
tree9742451c69e8c80b71e7daa06c20919ff5ae6015 /build/test/dummy-graphite.start
parent0cc5566a5629253794e60763c573752cbe4bcf93 (diff)
DOCKER + ANSIBLE == PAIN (also: graphite)
3 hours. THREE HOURS. The extra "Expose" statements are to workaround an issue introduced in Ansible 2.1 with the addition of the docker_* modules that replaces the "docker" module. THREEEEEEE HOURS. The graphite container is so far not ued for anything, but is provided to get things rolling. It does do persistent storage, but obviously not the way I originally wanted. Because persistent storage with docker is a pile of frozen piss.
Diffstat (limited to 'build/test/dummy-graphite.start')
-rwxr-xr-xbuild/test/dummy-graphite.start9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/test/dummy-graphite.start b/build/test/dummy-graphite.start
new file mode 100755
index 0000000..992928e
--- /dev/null
+++ b/build/test/dummy-graphite.start
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+if [ ! -r /var/lib/graphite/graphite.db ]; then
+ graphite-manage migrate
+ graphite-manage createsuperuser --noinput --username=admin --email root@localhost.localdomain
+ chown -R _graphite:_graphite /var/lib/graphite/
+fi
+service apache2 start
+service carbon-cache start
+while true; do sleep 10; done