This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
project.clj
227 lines (202 loc) · 9.73 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
;;
;; Copyright (c) Two Sigma Open Source, LLC
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;
(defproject cook "1.34.1-SNAPSHOT"
:description "This launches jobs on a Mesos cluster with fair sharing and preemption"
:license {:name "Apache License, Version 2.0"}
:dependencies [[org.clojure/clojure "1.8.0"]
;;Data marshalling
[org.clojure/data.codec "0.1.0"]
^:displace [cheshire "5.3.1"]
[byte-streams "0.1.4"]
[org.clojure/data.json "0.2.2"]
[com.taoensso/nippy "2.8.0"
:exclusions [org.clojure/tools.reader]]
[circleci/clj-yaml "0.5.5"]
[camel-snake-kebab "0.4.0"]
[com.rpl/specter "1.0.1"]
;;Utility
[com.google.guava/guava "17.0"]
[amalloy/ring-buffer "1.1"]
[listora/ring-congestion "0.1.2"]
[lonocloud/synthread "1.0.4"]
[org.clojure/tools.namespace "0.2.4"]
[org.clojure/core.cache "0.6.4"]
[org.clojure/core.memoize "0.5.8"]
[clj-time "0.12.0"]
[org.clojure/core.async "0.3.442" :exclusions [org.clojure/tools.reader]]
[org.clojure/tools.cli "0.3.5"]
[prismatic/schema "1.1.3"]
[clojure-miniprofiler "0.4.0"]
[jarohen/chime "0.1.6"]
[org.clojure/data.priority-map "0.0.5"]
[swiss-arrows "1.0.0"]
[riddley "0.1.10"]
^:displace [com.netflix.fenzo/fenzo-core "0.10.0"
:exclusions [org.apache.mesos/mesos
com.fasterxml.jackson.core/jackson-core
org.slf4j/slf4j-api
org.slf4j/slf4j-simple]]
;;Logging
[org.clojure/tools.logging "0.2.6"]
[clj-logging-config "1.9.10"
:exclusions [log4j]]
[org.slf4j/slf4j-log4j12 "1.7.12"]
[com.draines/postal "1.11.0"
:exclusions [commons-codec]]
[prismatic/plumbing "0.5.3"]
[log4j "1.2.17"]
[instaparse "1.4.0"]
[org.codehaus.jsr166-mirror/jsr166y "1.7.0"]
[clj-pid "0.1.1"]
[jarohen/chime "0.1.6"]
;;Networking
[twosigma/clj-http "2.0.0-ts1"]
[io.netty/netty "3.10.1.Final"]
[cc.qbits/jet "0.6.4" :exclusions [org.eclipse.jetty/jetty-io
org.eclipse.jetty/jetty-security
org.eclipse.jetty/jetty-server
org.eclipse.jetty/jetty-http
cheshire]]
[org.eclipse.jetty/jetty-server "9.2.6.v20141205"]
[org.eclipse.jetty/jetty-security "9.2.6.v20141205"]
;;Metrics
[metrics-clojure "2.6.1"
:exclusions [io.netty/netty org.clojure/clojure]]
[metrics-clojure-ring "2.3.0" :exclusions [com.codahale.metrics/metrics-core
org.clojure/clojure io.netty/netty]]
[metrics-clojure-jvm "2.6.1"]
[io.dropwizard.metrics/metrics-graphite "3.1.2"]
[com.aphyr/metrics3-riemann-reporter "0.4.0"
:exclusions [com.google.protobuf/protobuf-java]]
;;External system integrations
[me.raynes/conch "0.5.2"]
[org.clojure/tools.nrepl "0.2.3"]
;;Ring
[ring/ring-core "1.4.0"]
[ring/ring-devel "1.4.0" :exclusions [org.clojure/tools.namespace]]
[compojure "1.4.0"]
[metosin/compojure-api "1.1.8"]
[hiccup "1.0.5"]
[ring/ring-json "0.2.0"]
[ring-edn "0.1.0"]
[com.duelinmarkers/ring-request-logging "0.2.0"]
[liberator "0.15.0"]
;;Databases
[org.apache.curator/curator-framework "2.7.1"
:exclusions [io.netty/netty]]
[org.apache.curator/curator-recipes "2.7.1"
:exclusions [org.slf4j/slf4j-log4j12
org.slf4j/log4j
log4j]]
[org.apache.curator/curator-test "2.7.1"]
;; Dependency management
[mount "0.1.12"]
;; Kubernetes
[io.kubernetes/client-java "4.0.0"]
[com.google.auth/google-auth-library-oauth2-http "0.16.2"]]
:repositories {"maven2" {:url "https://files.couchbase.com/maven2/"}
"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}
:filespecs [{:type :fn
:fn (fn [_]
{:type :bytes
:path "git-log"
:bytes (.trim (:out (clojure.java.shell/sh
"git" "rev-parse" "HEAD")))})}
{:type :fn
:fn (fn [{:keys [version]}]
{:type :bytes
:path "version"
:bytes version})}]
:java-source-paths ["java"]
:profiles
{; By default, activate the :oss profile (explained below)
:default [:base :system :user :provided :dev :oss]
; The :oss profile exists so that Cook can be built with a more
; appropriate set of dependencies for a specific environment than
; the ones defined here (by using `lein with-profile -oss` ...)
:oss
{:dependencies [
; For example, one could drop in the datomic-pro
; library instead of the datomic-free library, by
; using a profiles.clj file that defines a profile
; which pulls in datomic-pro
[com.datomic/datomic-free "0.9.5206"
:exclusions [com.fasterxml.jackson.core/jackson-core
joda-time
org.slf4j/jcl-over-slf4j
org.slf4j/jul-to-slf4j
org.slf4j/log4j-over-slf4j
org.slf4j/slf4j-api
org.slf4j/slf4j-nop]]
; Similarly, one could use an older version of the
; mesomatic library in environments that require it
[twosigma/mesomatic "1.5.0-r4"]]}
:uberjar
{:aot [cook.components]
:dependencies [[com.datomic/datomic-free "0.9.5206"
:exclusions [com.fasterxml.jackson.core/jackson-core
joda-time
org.slf4j/jcl-over-slf4j
org.slf4j/jul-to-slf4j
org.slf4j/log4j-over-slf4j
org.slf4j/slf4j-api
org.slf4j/slf4j-nop]]]}
:dev
{:dependencies [[criterium "0.4.4"]
[log4j/log4j "1.2.17" :exclusions [javax.mail/mail
javax.jms/jms
com.sun.jdmk/jmxtools
com.sun.jmx/jmxri]]
[ring/ring-jetty-adapter "1.5.0"]]
:jvm-opts ["-Xms2G"
"-XX:-OmitStackTraceInFastThrow"
"-Xmx2G"
"-Dcom.sun.management.jmxremote.authenticate=false"
"-Dcom.sun.management.jmxremote.ssl=false"]
:resource-paths ["test-resources"]
:source-paths []}
:test
{:dependencies [[criterium "0.4.4"]
[org.clojure/test.check "0.6.1"]
[org.mockito/mockito-core "1.10.19"]
[twosigma/cook-jobclient "0.5.1-SNAPSHOT"]]}
:test-console
[:test {:jvm-opts ["-Dcook.test.logging.console"]}]
:override-maven {:local-repo ~(System/getenv "COOK_SCHEDULER_MAVEN_LOCAL_REPO")}
:docker
; avoid calling javac in docker
; (.java sources are only used for unit test support)
{:java-source-paths ^:replace []}}
:plugins [[lein-exec "0.3.7"]
[lein-print "0.1.0"]]
:test-selectors {:all (constantly true)
:all-but-benchmark (complement :benchmark)
:benchmark :benchmark
:default (complement #(or (:integration %) (:benchmark %)))
:integration :integration}
:main cook.components
:jvm-opts ["-Dpython.cachedir.skip=true"
;"-Dsun.security.jgss.native=true"
;"-Dsun.security.jgss.lib=/opt/mitkrb5/lib/libgssapi_krb5.so"
;"-Djavax.security.auth.useSubjectCredsOnly=false"
"-verbose:gc"
"-XX:+PrintGCDetails"
"-Xloggc:gclog"
"-XX:+UseGCLogFileRotation"
"-XX:NumberOfGCLogFiles=20"
"-XX:GCLogFileSize=128M"
"-XX:+PrintGCDateStamps"
"-XX:+HeapDumpOnOutOfMemoryError"])