├── start-kafka-manager.sh ├── docker-compose.yml ├── Dockerfile ├── README.md └── LICENSE.txt /start-kafka-manager.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [[ $KM_USERNAME != '' && $KM_PASSWORD != '' ]]; then 4 | sed -i.bak '/^basicAuthentication/d' /kafka-manager-${KM_VERSION}/conf/application.conf 5 | echo 'basicAuthentication.enabled=true' >> /kafka-manager-${KM_VERSION}/conf/application.conf 6 | echo "basicAuthentication.username=${KM_USERNAME}" >> /kafka-manager-${KM_VERSION}/conf/application.conf 7 | echo "basicAuthentication.password=${KM_PASSWORD}" >> /kafka-manager-${KM_VERSION}/conf/application.conf 8 | echo 'basicAuthentication.realm="Kafka-Manager"' >> /kafka-manager-${KM_VERSION}/conf/application.conf 9 | fi 10 | 11 | exec ./bin/kafka-manager -Dconfig.file=${KM_CONFIGFILE} "${KM_ARGS}" "${@}" -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # Docker compose to have Zookeeper, Kafka, and Kafka Manager running for development. 2 | # Provided by @chris-zen 3 | 4 | zookeeper: 5 | image: confluent/zookeeper 6 | ports: 7 | - "2181:2181" 8 | 9 | kafka: 10 | image: wurstmeister/kafka:0.9.0.0-1 11 | ports: 12 | - "9092:9092" 13 | links: 14 | - zookeeper:zk 15 | environment: 16 | - KAFKA_ADVERTISED_HOST_NAME 17 | - KAFKA_ADVERTISED_PORT=9092 18 | - KAFKA_DELETE_TOPIC_ENABLE=true 19 | - KAFKA_LOG_RETENTION_HOURS=1 20 | - KAFKA_MESSAGE_MAX_BYTES=10000000 21 | - KAFKA_REPLICA_FETCH_MAX_BYTES=10000000 22 | - KAFKA_GROUP_MAX_SESSION_TIMEOUT_MS=60000 23 | - KAFKA_NUM_PARTITIONS=2 24 | - KAFKA_DELETE_RETENTION_MS=1000 25 | 26 | 27 | kafka-manager: 28 | image: sheepkiller/kafka-manager:latest 29 | ports: 30 | - "9000:9000" 31 | links: 32 | - zookeeper 33 | - kafka 34 | environment: 35 | ZK_HOSTS: zookeeper:2181 36 | APPLICATION_SECRET: letmein 37 | KM_ARGS: -Djava.net.preferIPv4Stack=true 38 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7 2 | 3 | MAINTAINER Clement Laforet 4 | 5 | RUN yum update -y && \ 6 | yum install -y java-1.8.0-openjdk-headless && \ 7 | yum clean all 8 | 9 | ENV JAVA_HOME=/usr/java/default/ \ 10 | ZK_HOSTS=localhost:2181 \ 11 | KM_VERSION=1.3.1.8 \ 12 | KM_REVISION=97329cc8bf462723232ee73dc6702c064b5908eb \ 13 | KM_CONFIGFILE="conf/application.conf" 14 | 15 | ADD start-kafka-manager.sh /kafka-manager-${KM_VERSION}/start-kafka-manager.sh 16 | 17 | RUN yum install -y java-1.8.0-openjdk-devel git wget unzip which && \ 18 | mkdir -p /tmp && \ 19 | cd /tmp && \ 20 | git clone https://github.com/yahoo/kafka-manager && \ 21 | cd /tmp/kafka-manager && \ 22 | git checkout ${KM_REVISION} && \ 23 | echo 'scalacOptions ++= Seq("-Xmax-classfile-name", "200")' >> build.sbt && \ 24 | ./sbt clean dist && \ 25 | unzip -d / ./target/universal/kafka-manager-${KM_VERSION}.zip && \ 26 | rm -fr /tmp/* /root/.sbt /root/.ivy2 && \ 27 | chmod +x /kafka-manager-${KM_VERSION}/start-kafka-manager.sh && \ 28 | yum autoremove -y java-1.8.0-openjdk-devel git wget unzip which && \ 29 | yum clean all 30 | 31 | WORKDIR /kafka-manager-${KM_VERSION} 32 | 33 | EXPOSE 9000 34 | ENTRYPOINT ["./start-kafka-manager.sh"] 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # kafka manager Dockerfile 2 | [kafka manager](https://github.com/yahoo/kafka-manager) is a tool from Yahoo Inc. for managing [Apache Kafka](http://kafka.apache.org). 3 | ## Base Docker Image ## 4 | * [centos:7](https://hub.docker.com/_/centos/) 5 | 6 | ## RoadMap 7 | - ~~1.3.1.6 + 1 : defaulting to openjdk~~ 8 | - 1.3.1.6 + 2 : switch to non root user 9 | - 1.3.1.6 + 3 : switch to alpine linux 10 | 11 | ## Howto 12 | ### Quick Start 13 | ``` 14 | docker run -it --rm -p 9000:9000 -e ZK_HOSTS="your-zk.domain:2181" -e APPLICATION_SECRET=letmein sheepkiller/kafka-manager 15 | ``` 16 | (if you don't define ZK_HOSTS, default value has been set to "localhost:2181") 17 | 18 | 19 | ### Use your own configuration file 20 | Until 1.3.0.4, you were able to override default configuration file via a docker volume to overi: 21 | ``` 22 | docker run [...] -v /path/to/confdir:/kafka-manager-${KM_VERSION}/conf [...] 23 | ``` 24 | From > 1.3.0.4, you can specify a configuration file via an environment variable. 25 | ``` 26 | docker run [...] -v /path/to/confdir:/opt -e KM_CONFIG=/opt/my_shiny.conf sheepkiller/kafka-manager 27 | ``` 28 | 29 | ### Pass arguments to kafka-manager 30 | For release <= 1.3.0.4, you can pass options via command/args. 31 | ``` 32 | docker run -it --rm -p 9000:9000 -e ZK_HOSTS="your-zk.domain:2181" -e APPLICATION_SECRET=letmein sheepkiller/kafka-manager -Djava.net.preferIPv4Stack=true 33 | ``` 34 | For release > 1.3.0.4, you can use env variable `KM_ARGS`. 35 | ``` 36 | docker run -it --rm -p 9000:9000 -e ZK_HOSTS="your-zk.domain:2181" -e APPLICATION_SECRET=letmein -e KM_ARGS=-Djava.net.preferIPv4Stack=true sheepkiller/kafka-manager 37 | ``` 38 | 39 | ### Specify a revision 40 | If you want to upgrade/downgrade this Dockerfile, edit it and set `KM_VERSION` and `KM_REVISION` to fetch the release from github. 41 | 42 | ## Known issues 43 | - release before 1.3.1.6 may have APPLICATION_SECRET incorrectly set (default value) and kafka-manager will fail to start. Remove /kafka-manager znode from zookeeeper and reconfigure kafka-manager. 44 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright 2012-present Apache Software Foundation 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | 204 | 205 | ====================================================================== 206 | Apache Mesos Subcomponents: 207 | 208 | The Apache Mesos project contains subcomponents with separate copyright 209 | notices and license terms. Your use of the source code for the these 210 | subcomponents is subject to the terms and conditions of the following 211 | licenses. 212 | 213 | ====================================================================== 214 | For the Boost header files 215 | (3rdparty/boost-1.53.0.tar.gz): 216 | ====================================================================== 217 | 218 | Boost Software License - Version 1.0 - August 17th, 2003 219 | 220 | Permission is hereby granted, free of charge, to any person or organization 221 | obtaining a copy of the software and accompanying documentation covered by 222 | this license (the "Software") to use, reproduce, display, distribute, 223 | execute, and transmit the Software, and to prepare derivative works of the 224 | Software, and to permit third-parties to whom the Software is furnished to 225 | do so, all subject to the following: 226 | 227 | The copyright notices in the Software and this entire statement, including 228 | the above license grant, this restriction and the following disclaimer, 229 | must be included in all copies of the Software, in whole or in part, and 230 | all derivative works of the Software, unless such copies or derivative 231 | works are solely in the form of machine-executable object code generated by 232 | a source language processor. 233 | 234 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 235 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 236 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 237 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 238 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 239 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 240 | DEALINGS IN THE SOFTWARE. 241 | 242 | 243 | ====================================================================== 244 | For the ELFIO header files 245 | (3rdparty/elfio-3.1.tar.gz): 246 | ====================================================================== 247 | 248 | MIT License 249 | 250 | Copyright (C) 2001-2011 by Serge Lamikhov-Center 251 | 252 | Permission is hereby granted, free of charge, to any person obtaining a copy 253 | of this software and associated documentation files (the "Software"), to deal 254 | in the Software without restriction, including without limitation the rights 255 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 256 | copies of the Software, and to permit persons to whom the Software is 257 | furnished to do so, subject to the following conditions: 258 | 259 | The above copyright notice and this permission notice shall be included in 260 | all copies or substantial portions of the Software. 261 | 262 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 263 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 264 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 265 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 266 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 267 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 268 | THE SOFTWARE. 269 | 270 | 271 | ====================================================================== 272 | For setuptools-20.9.0 (3rdparty/setuptools-20.9.0.tar.gz): 273 | ====================================================================== 274 | 275 | PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 276 | -------------------------------------------- 277 | 278 | 1. This LICENSE AGREEMENT is between the Python Software Foundation 279 | ("PSF"), and the Individual or Organization ("Licensee") accessing and 280 | otherwise using this software ("Python") in source or binary form and 281 | its associated documentation. 282 | 283 | 2. Subject to the terms and conditions of this License Agreement, PSF 284 | hereby grants Licensee a nonexclusive, royalty-free, world-wide 285 | license to reproduce, analyze, test, perform and/or display publicly, 286 | prepare derivative works, distribute, and otherwise use Python 287 | alone or in any derivative version, provided, however, that PSF's 288 | License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 289 | 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights 290 | Reserved" are retained in Python alone or in any derivative version 291 | prepared by Licensee. 292 | 293 | 3. In the event Licensee prepares a derivative work that is based on 294 | or incorporates Python or any part thereof, and wants to make 295 | the derivative work available to others as provided herein, then 296 | Licensee hereby agrees to include in any such work a brief summary of 297 | the changes made to Python. 298 | 299 | 4. PSF is making Python available to Licensee on an "AS IS" 300 | basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR 301 | IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND 302 | DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS 303 | FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT 304 | INFRINGE ANY THIRD PARTY RIGHTS. 305 | 306 | 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 307 | FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS 308 | A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, 309 | OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 310 | 311 | 6. This License Agreement will automatically terminate upon a material 312 | breach of its terms and conditions. 313 | 314 | 7. Nothing in this License Agreement shall be deemed to create any 315 | relationship of agency, partnership, or joint venture between PSF and 316 | Licensee. This License Agreement does not grant permission to use PSF 317 | trademarks or trade name in a trademark sense to endorse or promote 318 | products or services of Licensee, or any third party. 319 | 320 | 8. By copying, installing or otherwise using Python, Licensee 321 | agrees to be bound by the terms and conditions of this License 322 | Agreement. 323 | 324 | 325 | ====================================================================== 326 | For glog-0.3.3 (3rdparty/glog-0.3.3.tar.gz): 327 | ====================================================================== 328 | 329 | Copyright (c) 2008, Google Inc. 330 | All rights reserved. 331 | 332 | Redistribution and use in source and binary forms, with or without 333 | modification, are permitted provided that the following conditions are 334 | met: 335 | 336 | * Redistributions of source code must retain the above copyright 337 | notice, this list of conditions and the following disclaimer. 338 | * Redistributions in binary form must reproduce the above 339 | copyright notice, this list of conditions and the following disclaimer 340 | in the documentation and/or other materials provided with the 341 | distribution. 342 | * Neither the name of Google Inc. nor the names of its 343 | contributors may be used to endorse or promote products derived from 344 | this software without specific prior written permission. 345 | 346 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 347 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 348 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 349 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 350 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 351 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 353 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 354 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 355 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 356 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 357 | 358 | 359 | A function gettimeofday in utilities.cc is based on 360 | 361 | http://www.google.com/codesearch/p?hl=en#dR3YEbitojA/COPYING&q=GetSystemTimeAsFileTime%20license:bsd 362 | 363 | The license of this code is: 364 | 365 | Copyright (c) 2003-2008, Jouni Malinen and contributors 366 | All Rights Reserved. 367 | 368 | Redistribution and use in source and binary forms, with or without 369 | modification, are permitted provided that the following conditions are 370 | met: 371 | 372 | 1. Redistributions of source code must retain the above copyright 373 | notice, this list of conditions and the following disclaimer. 374 | 375 | 2. Redistributions in binary form must reproduce the above copyright 376 | notice, this list of conditions and the following disclaimer in the 377 | documentation and/or other materials provided with the distribution. 378 | 379 | 3. Neither the name(s) of the above-listed copyright holder(s) nor the 380 | names of its contributors may be used to endorse or promote products 381 | derived from this software without specific prior written permission. 382 | 383 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 384 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 385 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 386 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 387 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 388 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 389 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 390 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 391 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 392 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 393 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 394 | 395 | 396 | ====================================================================== 397 | For gmock-1.7.0 (3rdparty/gmock-1.7.0.tar.gz): 398 | ====================================================================== 399 | 400 | Copyright 2008, Google Inc. 401 | All rights reserved. 402 | 403 | Redistribution and use in source and binary forms, with or without 404 | modification, are permitted provided that the following conditions are 405 | met: 406 | 407 | * Redistributions of source code must retain the above copyright 408 | notice, this list of conditions and the following disclaimer. 409 | * Redistributions in binary form must reproduce the above 410 | copyright notice, this list of conditions and the following disclaimer 411 | in the documentation and/or other materials provided with the 412 | distribution. 413 | * Neither the name of Google Inc. nor the names of its 414 | contributors may be used to endorse or promote products derived from 415 | this software without specific prior written permission. 416 | 417 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 418 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 419 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 420 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 421 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 422 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 423 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 424 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 425 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 426 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 427 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 428 | 429 | 430 | ====================================================================== 431 | For leveldb (3rdparty/leveldb-1.4.tar.gz): 432 | ====================================================================== 433 | 434 | Copyright (c) 2011 The LevelDB Authors. All rights reserved. 435 | 436 | Redistribution and use in source and binary forms, with or without 437 | modification, are permitted provided that the following conditions are 438 | met: 439 | 440 | * Redistributions of source code must retain the above copyright 441 | notice, this list of conditions and the following disclaimer. 442 | * Redistributions in binary form must reproduce the above 443 | copyright notice, this list of conditions and the following disclaimer 444 | in the documentation and/or other materials provided with the 445 | distribution. 446 | * Neither the name of Google Inc. nor the names of its 447 | contributors may be used to endorse or promote products derived from 448 | this software without specific prior written permission. 449 | 450 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 451 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 452 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 453 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 454 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 455 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 456 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 457 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 458 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 459 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 460 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 461 | 462 | 463 | ====================================================================== 464 | For protobuf-2.6.1 465 | (3rdparty/protobuf-2.6.1.tar.gz): 466 | ====================================================================== 467 | 468 | Copyright 2008, Google Inc. 469 | All rights reserved. 470 | 471 | Redistribution and use in source and binary forms, with or without 472 | modification, are permitted provided that the following conditions are 473 | met: 474 | 475 | * Redistributions of source code must retain the above copyright 476 | notice, this list of conditions and the following disclaimer. 477 | * Redistributions in binary form must reproduce the above 478 | copyright notice, this list of conditions and the following disclaimer 479 | in the documentation and/or other materials provided with the 480 | distribution. 481 | * Neither the name of Google Inc. nor the names of its 482 | contributors may be used to endorse or promote products derived from 483 | this software without specific prior written permission. 484 | 485 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 486 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 487 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 488 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 489 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 490 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 491 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 492 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 493 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 494 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 495 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 496 | 497 | Code generated by the Protocol Buffer compiler is owned by the owner 498 | of the input file used when generating it. This code is not 499 | standalone and requires a support library to be linked with it. This 500 | support library is itself covered by the above license. 501 | 502 | 503 | ====================================================================== 504 | For libev-4.22 (3rdparty/libev-4.22.tar.gz): 505 | ====================================================================== 506 | 507 | All files in libev are 508 | Copyright (c)2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann. 509 | 510 | Redistribution and use in source and binary forms, with or without 511 | modification, are permitted provided that the following conditions are 512 | met: 513 | 514 | * Redistributions of source code must retain the above copyright 515 | notice, this list of conditions and the following disclaimer. 516 | 517 | * Redistributions in binary form must reproduce the above 518 | copyright notice, this list of conditions and the following 519 | disclaimer in the documentation and/or other materials provided 520 | with the distribution. 521 | 522 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 523 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 524 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 525 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 526 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 527 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 528 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 529 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 530 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 531 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 532 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 533 | 534 | Alternatively, the contents of this package may be used under the terms 535 | of the GNU General Public License ("GPL") version 2 or any later version, 536 | in which case the provisions of the GPL are applicable instead of the 537 | above. If you wish to allow the use of your version of this package only 538 | under the terms of the GPL and not to allow others to use your version of 539 | this file under the BSD license, indicate your decision by deleting the 540 | provisions above and replace them with the notice and other provisions 541 | required by the GPL in this and the other files of this package. If you do 542 | not delete the provisions above, a recipient may use your version of this 543 | file under either the BSD or the GPL. 544 | 545 | 546 | ====================================================================== 547 | For http-parser 548 | (3rdparty/http-parser-2.6.2.tar.gz): 549 | ====================================================================== 550 | 551 | http_parser.c is based on src/http/ngx_http_parse.c from NGINX copyright 552 | Igor Sysoev. 553 | 554 | Additional changes are licensed under the same terms as NGINX and 555 | copyright Joyent, Inc. and other Node contributors. All rights reserved. 556 | 557 | Permission is hereby granted, free of charge, to any person obtaining a copy 558 | of this software and associated documentation files (the "Software"), to 559 | deal in the Software without restriction, including without limitation the 560 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 561 | sell copies of the Software, and to permit persons to whom the Software is 562 | furnished to do so, subject to the following conditions: 563 | 564 | The above copyright notice and this permission notice shall be included in 565 | all copies or substantial portions of the Software. 566 | 567 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 568 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 569 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 570 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 571 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 572 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 573 | IN THE SOFTWARE. 574 | 575 | 576 | ====================================================================== 577 | For the NVML header files 578 | (3rdparty/nvml-352.79.tar.gz): 579 | ====================================================================== 580 | 581 | Copyright 1993-2015 NVIDIA Corporation. All rights reserved. 582 | 583 | NOTICE TO USER: 584 | 585 | This source code is subject to NVIDIA ownership rights under U.S. and 586 | international Copyright laws. Users and possessors of this source code 587 | are hereby granted a nonexclusive, royalty-free license to use this code 588 | in individual and commercial software. 589 | 590 | NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE 591 | CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR 592 | IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH 593 | REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF 594 | MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. 595 | IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, 596 | OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 597 | OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 598 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE 599 | OR PERFORMANCE OF THIS SOURCE CODE. 600 | 601 | U.S. Government End Users. This source code is a "commercial item" as 602 | that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of 603 | "commercial computer software" and "commercial computer software 604 | documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) 605 | and is provided to the U.S. Government only as a commercial end item. 606 | Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 607 | 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the 608 | source code with only those rights set forth herein. 609 | 610 | Any use of this source code in individual and commercial software must 611 | include, in the user documentation and internal comments to the code, 612 | the above Disclaimer and U.S. Government End Users Notice. 613 | --------------------------------------------------------------------------------