-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.clj
128 lines (116 loc) · 4.9 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
(defproject maestro "0.166-SNAPSHOT"
:description "Maestro service"
:license "https://github.com/mixradio/mr-maestro/blob/master/LICENSE"
:dependencies [[amazonica "0.3.29" :exclusions [com.fasterxml.jackson.core/jackson-annotations]]
[bouncer "0.3.3"]
[ch.qos.logback/logback-classic "1.1.3"]
[cheshire "5.5.0"]
[clj-http "2.0.0"]
[clj-time "0.10.0"]
[clojurewerkz/elastisch "2.1.0"]
[com.cemerick/url "0.1.1"]
[com.ninjakoala/aws-instance-metadata "1.0.0"]
[com.ninjakoala/lamarck "1.0.5"]
[com.ninjakoala/monotony "1.0"]
[com.ninjakoala/ttlr "1.0.1"]
[com.taoensso/carmine "2.11.1"]
[compojure "1.4.0"]
[dire "0.5.3"]
[environ "1.0.0"]
[io.clj/logging "0.8.1"]
[joda-time "2.8.1"]
[mixradio/graphite-filter "1.0.0"]
[mixradio/instrumented-ring-jetty-adapter "1.0.4"]
[mixradio/radix "1.0.10"]
[net.logstash.logback/logstash-logback-encoder "4.4"]
[org.clojure/clojure "1.6.0"]
[org.clojure/tools.logging "0.3.1"]
[org.tobereplaced/lettercase "1.0.0"]
[ring-middleware-format "0.5.0"]]
:exclusions [commons-logging
joda-time
log4j
org.clojure/clojure]
:profiles {:dev {:dependencies [[midje "1.7.0"]]
:plugins [[lein-kibit "0.0.8"]
[lein-midje "3.1.3"]
[lein-rpm "0.0.5"]]}}
:plugins [[lein-cloverage "1.0.2"]
[lein-environ "1.0.0"]
[lein-marginalia "0.8.0"]
[lein-release "1.0.5"]
[lein-ring "0.9.0"]]
:env {:aws-key-name "maestro"
:aws-required-security-groups "maestro-healthcheck"
:aws-role-name "maestro"
:default-instances-healthy-attempts 100
:default-load-balancer-healthy-attempts 50
:elasticsearch-index-name "maestro"
:elasticsearch-url "http://localhost:9200"
:environment-name "dev"
:graphite-enabled false
:graphite-host "carbon"
:graphite-port 2003
:graphite-post-interval-seconds 60
:healthy-url "http://healthy"
:hubot-deployments-room "deployments"
:hubot-url "http://hubot"
:logging-consolethreshold "off"
:logging-filethreshold "info"
:logging-level "info"
:logging-path "/tmp"
:logging-stashthreshold "warn"
:numel-poke-baseurl "http://numelpoke"
:numel-prod-baseurl "http://numelprod"
:lister-baseurl "http://lister"
:pedantic-baseurl "http://pedantic"
:production false
:redis-host "localhost"
:redis-key-prefix "maestro"
:redis-port 6379
:redis-queue-threads 1
:requestlog-enabled false
:requestlog-retainhours 24
:service-dev-vpc-id "vpc-dev"
:service-jvmargs ""
:service-name "maestro"
:service-port 8080
:shutdown-timeout-millis 5000
:start-timeout-seconds 120
:threads 254
:tyrant-baseurl "http://tyrant"
:ui-baseurl "http://maestro-ui"}
:clean-targets ^{:protect false} [:target-path "docs"]
:lein-release {:deploy-via :shell
:shell ["lein" "do" "clean," "uberjar," "pom," "rpm"]}
:ring {:handler maestro.web/app
:main maestro.setup
:port ~(Integer/valueOf (get (System/getenv) "SERVICE_PORT" "8080"))
:init maestro.setup/setup
:browser-uri "/healthcheck"
:nrepl {:start? true}}
:uberjar-name "maestro.jar"
:eastwood {:namespaces [:source-paths]}
:rpm {:name "maestro"
:summary "RPM for Maestro service"
:copyright "MixRadio 2014"
:preinstall {:scriptFile "scripts/rpm/preinstall.sh"}
:postinstall {:scriptFile "scripts/rpm/postinstall.sh"}
:preremove {:scriptFile "scripts/rpm/preremove.sh"}
:postremove {:scriptFile "scripts/rpm/postremove.sh"}
:requires ["jdk >= 2000:1.7.0_55-fcs"]
:mappings [{:directory "/usr/local/maestro"
:filemode "444"
:username "maestro"
:groupname "maestro"
:sources {:source [{:location "target/maestro.jar"}]}}
{:directory "/usr/local/maestro/bin"
:filemode "744"
:username "maestro"
:groupname "maestro"
:sources {:source [{:location "scripts/bin"}]}}
{:directory "/etc/rc.d/init.d"
:filemode "755"
:sources {:source [{:location "scripts/service/maestro"
:destination "maestro"}]}}]}
:main maestro.setup)