Open timp87 opened 6 years ago
Looks like this git repo is abandoned. But it helped me anyway. Also official marathon repo stopped providing packages for new versions so I built it manually.
This was done on CentOS 7.2
You need a machine with at least 8GB of RAM.
Add SBT repo like described here http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html
[root@localhost ~]# curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo
Install all needed packages like described in thisrepository:
[root@localhost ~]# yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel git ruby ruby-devel rpm-build sbt
Install additional packages to build ruby gems
[root@localhost ~]# yum install libffi libffi-devel gcc
Install FPM ruby gem
[root@localhost ~]# gem install fpm
Clone official marathon git repo
[root@localhost ~]# git clone https://github.com/mesosphere/marathon.git
Got to the git root dir
[root@localhost ~]# cd marathon/
Check out needed git tag (marathon release version)
[root@localhost marathon]# git checkout v1.5.5
Build packages
[root@localhost marathon]# sbt packageLinux
Here are various rpm and deb packages for SysV and SystemD based distros
[root@localhost marathon]# ls -1 target/packages/
systemd-marathon-1.5.5-1.noarch.rpm
systemd-marathon_1.5.5_all.deb
systemv-marathon-1.5.5-1.noarch.rpm
systemv-marathon_1.5.5_all.deb
upstart-marathon_1.5.5_all.deb
Something like this should be documented in official marathon documentation.
Hello. I've followed the instruction described in README.md of this repository. I've managed to build latest marathon-1.4.11, but I'm unable to build marathon-1.5.5. Looks like Makefile has inappropriate for 1.5.5 steps relying on assembly which is not used in marathon 1.5.5.