mesosphere-backup / deimos

Mesos containerizer hooks for Docker
Apache License 2.0
249 stars 26 forks source link

Freezing and packaging deimos into deb/rpm. #14

Closed grampelberg closed 10 years ago

grampelberg commented 10 years ago

@solidsnack @lingmann Take a look, tested working on Fedora 20 and Ubuntu 13.10.

lingmann commented 10 years ago

Notes on what I had to do to use this on Ubuntu 14.04:

sudo apt-get install ruby-dev python-pip python-dev libz-dev protobuf-compiler
sudo gem install fpm
sudo pip install bbfreeze

Would be nice to add this to comments at the top of Makefile (or make prep). Can we build the rpm and the deb on the same host?

I eventually got stopped with this error:

vagrant@lodestone1:~/deimos$ make freeze
mkdir -p toor/usr/local/bin
mkdir -p toor/opt/mesosphere/deimos
cp bin/run toor/usr/local/bin/deimos
cp: cannot stat ‘bin/run’: No such file or directory
make: *** [freeze] Error 1
grampelberg commented 10 years ago

We won't be able to build on the same host as libraries are included.

I'll add a make prep for ubuntu and fedora.