{"id":15517097,"url":"https://github.com/deric/mesos-deb-packaging","last_synced_at":"2025-04-23T03:49:05.535Z","repository":{"id":8041500,"uuid":"9451768","full_name":"deric/mesos-deb-packaging","owner":"deric","description":"Mesos package for Debian, Ubuntu","archived":false,"fork":false,"pushed_at":"2016-05-05T18:15:20.000Z","size":244,"stargazers_count":31,"open_issues_count":3,"forks_count":88,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T03:48:58.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-15T15:27:21.000Z","updated_at":"2022-07-27T18:53:50.000Z","dependencies_parsed_at":"2022-09-02T09:23:28.148Z","dependency_job_id":null,"html_url":"https://github.com/deric/mesos-deb-packaging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fmesos-deb-packaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fmesos-deb-packaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fmesos-deb-packaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fmesos-deb-packaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deric","download_url":"https://codeload.github.com/deric/mesos-deb-packaging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366684,"owners_count":21418768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:11:33.853Z","updated_at":"2025-04-23T03:49:05.503Z","avatar_url":"https://github.com/deric.png","language":"Shell","funding_links":[],"categories":["Deployment"],"sub_categories":["Packaging"],"readme":"# Mesos packaging\n\nMesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks.  See [Mesos website](http://mesos.apache.org/) for more details.\n\nNOTE: if you build Mesos on system with e.g. `libcurl4-nss-dev` it will be hardlinked to this implementation library. On Debian `libcurl-dev` is the virtual package for:\n\n  * `libcurl-dev`\n  * `libcurl4-nss-dev`\n  * `libcurl4-openssl-dev`\n\n## GCC compatibility\n\n| **Mesos version \\ GCC** | gcc 4.4 | gcc 4.6 | gcc 4.7 | gcc 4.8 | gcc 4.9 |\n|------------------------:|:-------:|:-------:|:-------:|:-------:|:-------:|\n|  0.20                   |    ✔    |    ✔    |     ✔   |    ✔    |    ✔    |\n|  0.21                   |    ✔    |    ✔    |     ✖   |    ✔    |    ✔    |\n|  0.22                   |    ✖    |    ✖    |     ✖   |    ✔    |    ✔    |\n\nMesos is compiled with C++11 support.\n\n## Mesos configuration\n\nMesos arguments could be specified by creating files structure in `/etc/mesos-slave` or in `/etc/mesos-master`.\n\nFor specifing e.g. `--isolation=cgroups` you would create\n\n```\n  /etc\n    /mesos-slave\n      isolation       # with contents 'cgroups'\n```\n\nIn similar manner you can restrict hardware resources used by mesos-slave:\n\n```\n  /etc\n    /mesos-slave\n      /resources\n        cpu          # with contents e.g. '5'\n```\n\n## Building package\n\nBuild deb package for Debian/Ubuntu with following:\n\n```\n./build_mesos --repo https://git-wip-us.apache.org/repos/asf/mesos.git?ref=0.15.0 --version 0.15.0\n```\n\nor supply just `ref` to tag in the (default) repo:\n```\n./build_mesos --ref 0.22.1 --build-version p1\n```\n\nIf you want to activate GPU support (Mesos \u003e= 0.29.0), you'll need to first have a local copy of bleeding edge of Mesos (as there is no rev yet). You'll also have installed the nVidia GDK as instructed in the [nVidia Guide](http://c99.millennium.berkeley.edu/documentation/latest/gpu-support/)\n\n```\n./build_mesos --src-dir=/path/to/mesos --enable-gpu\n```\n\nThen don't forget to look at the [nVidia doc](http://c99.millennium.berkeley.edu/documentation/latest/gpu-support/) to run Mesos Agent with the proper tags\n\n### Debian Wheezy\n\nDefault gcc on Wheezy is 4.7 which isn't compatible with Mesos \u003e= 0.21. A workaround is using\ngcc 4.6 which could be used along with 4.7:\n\n```\napt-get install gcc-4.6 g++-4.6\n```\n\njust specify `cxx` and `cc` flags:\n\n```\n./build_mesos --ref 0.21.1-rc2 --build-version 1 --cxx \"g++-4.6\" --cc \"gcc-4.6\"\n```\n\n### Compiled gcc from source\n\nSee [gcc instructions](https://gcc.gnu.org/wiki/InstallingGCC).\n```\nexport LD_LIBRARY_PATH=\"/root/gcc-4.8.4/lib64\"\nexport LD_RUN_PATH=\"/root/gcc-4.8.4/lib64\"\nexport PATH=\"/root/gcc-4.8.4/bin:$PATH\"\n```\n\n### Requirements\n\n  * you'll definitely need ~2GB RAM for compilation\n    * if fact due to `make -j $(($(num_cores)*2))` you need cca 2GB per core\n  * Ruby (build scripts uses [FPM](https://github.com/jordansissel/fpm))\n  * If using GPU, you must have followed the [nVidia Guide](http://c99.millennium.berkeley.edu/documentation/latest/gpu-support/) and installed requirements\n\n#### Debian Jessie\n\n  * install following packages\n\n    ```\n    $ sudo apt-get install build-essential ruby2.1 ruby2.1-dev rubygems\n    $ gem install fpm\n    $ sudo apt-get install build-essential python-dev autoconf automake git make libssl-dev libtool libsasl2-dev\n    ```\n  * some version of `libcurl-dev` (provided by multiple packages)\n  * Mesos \u003e= 0.21\n    * Debian: `libapr1-dev libsvn-dev`\n\n\n#### Debian Wheezy\n    ```\n    $ sudo apt-get install ruby1.9.1 ruby1.9.1-dev build-essential\n    $ gem install fpm\n    $ sudo apt-get install build-essential python-dev autoconf automake git make libssl-dev libtool libsasl2-dev\n    ```\n  * Java support\n    * e.g. `openjdk-7-jre-headless`, `openjdk-7-jdk` ,`maven`\n  * Python packages\n    * Debian: `python-setuptools`\n\n  * Mesos \u003e= 0.14\n    * Debian: `libsasl2-dev`\n  * Mesos \u003e= 0.21\n    * Debian: `libapr1-dev libsvn-dev`\n\n#### Ubuntu Xenial on Power + GPU (ppc64le) (should also work on Trusty on Power)\n\n  * If you're using Power architecture (ppc64le) to compile, you may need to compile from source FPM. \n```\nsudo apt-get update -qq\nsudo apt-get install -y --force-yes \\\n  tar \\\n  wget \\\n  tree \\\n  autoconf \\\n  automake \\\n  git \\\n  make \\\n  gcc \\\n  libcurl4-nss-dev \\\n  libsasl2-dev \\\n  libsasl2-modules \\\n  libssl-dev \\\n  libapr1-dev \\\n  libsvn-dev \\\n  libffi-dev \\\n  openjdk-8-jdk \\\n  maven \\\n  autoconf libtool \\\n  build-essential \\\n  python-setuptools \\\n  python-dev \\\n  python-boto \\\n  ruby \\\n  ruby-dev \\\n  rubygems-integration \\\n  rake-compiler \\\n  bsdtar\n\n# This is to build Marathon\necho \"deb https://dl.bintray.com/sbt/debian /\" | sudo tee -a /etc/apt/sources.list.d/sbt.list\napt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823\nsudo apt-get update -yqq\nsudo apt-get install -yqq --force-yes sbt\n\n# Some gem dependencies\nsudo gem install \\\n  yard \\\n  rspec \\\n  rubygems-tasks \\\n  bundler \\\n  tasks \\\n  task \\\n  custom_require\n\n# We need to install FPM manually as it doesn't run on Xenial on Power\ncd ~\ngit clone https://github.com/jordansissel/fpm.git\ncd ~/fpm\nbundle install \nmake\nsudo make install \n\n# This is hacky as the default nvidia script doesn't check for arch\ncase \"$(arch)\" in \n  \"x86_64\" | \"amd64\" )\n    ARCH=\"amd64\"\n  ;;\n  \"ppc64le\" | \"ppc64el\" ) \n    ARCH=\"ppc64le\"\n  ;;\nesac\n\nwget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/gdk/gdk_linux_${ARCH}_352_79_release.run\nchmod +x gdk_linux_${ARCH}_352_79_release.run\nsudo ./gdk_linux_${ARCH}_352_79_release.run --installdir=/opt/nvidia-gdk --silent\necho \"/opt/nvidia-gdk/usr/src/gdk/nvml/lib\" | sudo tee /etc/ld.so.conf.d/nvidia-gdk.conf \nsudo ldconfig\n\n# Using trunk\ncd ~\ngit clone https://git-wip-us.apache.org/repos/asf/mesos.git \n\ngit clone https://github.com/deric/mesos-deb-packaging.git\n\ncd mesos-deb-packaging\n./build-mesos --src-dir=${HOME}/mesos --enable-gpu\n```\n\n\n## Puppet\n\nPackage could be automatically configured by a [Puppet module](https://github.com/deric/puppet-mesos)\n\n## Authors\n\n   * Tomas Barton\n   * Jason Dusek\n   * Jeremy Lingmann\n   * Chris Buben\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fmesos-deb-packaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderic%2Fmesos-deb-packaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fmesos-deb-packaging/lists"}