Re: Building portable binaries

2015-09-19 Thread F21

Hey James,

Thanks for sharing the ebuild! I spun up gentoo as a docker container 
and copied the ebuild to 
/usr/local/portage/clustering/mesos/mesos-0.22.0.ebuild.


However, when I run ebuild mesos-0.22.0.ebuild manifest, it throws an 
error about the metadata:


Appending /usr/local/portage to PORTDIR_OVERLAY...
Error(s) in metadata for 'clustering/mesos-0.22.0':
  DEPEND: Invalid atom (.keep), token 12
  RDEPEND: Invalid atom (.keep), token 7

Any ideas why this might be happening?

Cheers!

On 20/09/2015 4:35 AM, CCAAT wrote:

Hey F21,

The ebuild is attached. Hopefully I'll be setting up github for this 
and other ebuilds I have been hacking on. I'm not a dev, but debugging 
these ebuilds in not difficult [1].



Please let me know how this ebuild works for you. I never tested it 
extensively



James




On 09/17/2015 11:09 PM, F21 wrote:

That sounds really interesting! I am just in the process of spinning up
a gentoo vm.

Would you mind sharing your ebuild for mesos-0.22.0 via a gist on 
Github?


On 18/09/2015 12:58 PM, CCAAT wrote:

On 09/17/2015 06:33 PM, F21 wrote:

Is there anyway to build portable binaries for mesos?



You should try out gentoo linux, everything is built from sources.

Ebuilds guide the process. My (hack) ebuild for mesos-0.22.0 was
61 lines. That's it. I will roll out a 0.24 ebuild, in a few weeks
or less.

Gentoo is designed from the ground up to build form sources. We have
a rich 'cross-compile' environment for things like aarch64; so building
mesos for arm64 is mostly trivial, once the 0.24 ebuild is rolled out.


There a bit of reading, but the gentoo 'devmanual' pretty much guides
you through the process [1]. Gentoo also has a great package manager.
Here is a (very profane) rant/comparison of some common package 
managers

and their inherent weaknesses [2]. If you want to see how simple the
gentoo ebuild for mesos-0.22 is just ask. It fetches, unpacks, compiles
and installs the package, very neatly. And there is lots of help and
encouragement from a long list of talented devs.

Gentoo is not for the weak minded or folks that do not wish to master
the deep details of linux. caveat emptor. CoreOS uses much of gentoo
in it's build/management, if that option helps.


hth,
James





[1] https://devmanual.gentoo.org/


[2]
http://michael.orlitzky.com/articles/motherfuckers_need_package_management.php 












Re: Building portable binaries

2015-09-19 Thread CCAAT

Hey F21,

The ebuild is attached. Hopefully I'll be setting up github for this and 
other ebuilds I have been hacking on. I'm not a dev, but debugging these 
ebuilds in not difficult [1].



Please let me know how this ebuild works for you. I never tested it 
extensively



James




On 09/17/2015 11:09 PM, F21 wrote:

That sounds really interesting! I am just in the process of spinning up
a gentoo vm.

Would you mind sharing your ebuild for mesos-0.22.0 via a gist on Github?

On 18/09/2015 12:58 PM, CCAAT wrote:

On 09/17/2015 06:33 PM, F21 wrote:

Is there anyway to build portable binaries for mesos?



You should try out gentoo linux, everything is built from sources.

Ebuilds guide the process. My (hack) ebuild for mesos-0.22.0 was
61 lines. That's it. I will roll out a 0.24 ebuild, in a few weeks
or less.

Gentoo is designed from the ground up to build form sources. We have
a rich 'cross-compile' environment for things like aarch64; so building
mesos for arm64 is mostly trivial, once the 0.24 ebuild is rolled out.


There a bit of reading, but the gentoo 'devmanual' pretty much guides
you through the process [1]. Gentoo also has a great package manager.
Here is a (very profane) rant/comparison of some common package managers
and their inherent weaknesses [2]. If you want to see how simple the
gentoo ebuild for mesos-0.22 is just ask. It fetches, unpacks, compiles
and installs the package, very neatly. And there is lots of help and
encouragement from a long list of talented devs.

Gentoo is not for the weak minded or folks that do not wish to master
the deep details of linux. caveat emptor. CoreOS uses much of gentoo
in it's build/management, if that option helps.


hth,
James





[1] https://devmanual.gentoo.org/


[2]
http://michael.orlitzky.com/articles/motherfuckers_need_package_management.php






# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
## hack by James aug 2014

EAPI=5

inherit autotools eutils flag-o-matic multilib

MY_PV=${PV/_/}

DESCRIPTION="fast cluster manager for distributed applications"
HOMEPAGE="http://mesos.apache.org/";

SRC_URI="http://apache.org/dist/${PN}/${PV}/${P}.tar.gz";

LICENSE="Apache-2.0"
KEYWORDS="~amd64"
IUSE="java python"
SLOT="0"

DEPEND="net-misc/curl
dev-libs/cyrus-sasl
python? ( dev-lang/python dev-python/boto )
java? ( virtual/jdk )
dev-java/maven-bin 
dev-libs/hyperleveldb
dev-python/pip
dev-python/wheel
dev-vcs/subversion"

RDEPEND="python? ( dev-lang/python )
 >=virtual/jdk-1.6
 dev-java/maven-bin 
 ${DEPEND}"


S="${WORKDIR}/${P}"

ECONF_SOURCE="${S}"

src_prepare() {
mkdir "${S}/build" || die
}

src_configure() {
cd "${S}/build"
econf \
$(use_enable python) \
$(use_enable java)
}

src_compile() {
cd "${S}/build"
emake -j1 V=1
}

src_install() {
cd "${S}/build"
emake DESTDIR="${D}" install || die "emake install failed"
}


Re: [VOTE] Release Apache Mesos 0.24.1 (rc1)

2015-09-19 Thread haosdent
Failed on CentOS 6.6 is because of I don't add correct hosts record in
/etc/hosts. Now

```
sudo make -j8 distcheck
```

could pass on both Ubuntu 14.04 and CentOS 6.6

+1

On Sat, Sep 19, 2015 at 5:04 PM, haosdent  wrote:

> I use
> ```
> sudo make -j8 distcheck
> ```
> do test.
> Passed in Ubuntu 14.04.
> But could not pass in CentOS 6.6 because of DockerContainerizerTest.
>
> On Sat, Sep 19, 2015 at 9:21 AM, Adam Bordelon  wrote:
>
>> Hi friends,
>>
>> Please vote on releasing the following candidate as Apache Mesos 0.24.1.
>>
>> 0.24.1 includes the following:
>>
>> 
>> * [MESOS-2986] - Docker version output is not compatible with Mesos
>> * [MESOS-3136] - COMMAND health checks with Marathon 0.10.0 are broken
>>
>> The CHANGELOG for the release is available at:
>>
>> https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=blob_plain;f=CHANGELOG;hb=0.24.1-rc1
>>
>> 
>>
>> The candidate for Mesos 0.24.1 release is available at:
>>
>> https://dist.apache.org/repos/dist/dev/mesos/0.24.1-rc1/mesos-0.24.1.tar.gz
>>
>> The tag to be voted on is 0.24.1-rc1:
>> https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=commit;h=0.24.1-rc1
>>
>> The MD5 checksum of the tarball can be found at:
>>
>> https://dist.apache.org/repos/dist/dev/mesos/0.24.1-rc1/mesos-0.24.1.tar.gz.md5
>>
>> The signature of the tarball can be found at:
>>
>> https://dist.apache.org/repos/dist/dev/mesos/0.24.1-rc1/mesos-0.24.1.tar.gz.asc
>>
>> The PGP key used to sign the release is here:
>> https://dist.apache.org/repos/dist/release/mesos/KEYS
>>
>> The JAR is up in Maven in a staging repository here:
>> https://repository.apache.org/content/repositories/orgapachemesos-1068
>>
>> Please vote on releasing this package as Apache Mesos 0.24.1!
>>
>> The vote is open until Wed Sep 23 18:00 PDT 2015 and passes if a majority
>> of at least 3 +1 PMC votes are cast.
>>
>> [ ] +1 I tested this package. Release it as Apache Mesos 0.24.1
>> [ ] -1 Do not release this package because ...
>>
>> Thanks,
>> -Adam-
>>
>
>
>
> --
> Best Regards,
> Haosdent Huang
>



-- 
Best Regards,
Haosdent Huang


Re: Official RPMs

2015-09-19 Thread Carlos Sanchez
I'm using the same repo with some changes to build SSL enabled packages

https://github.com/carlossg/mesos-deb-packaging/compare/master...carlossg:ssl


On Sat, Sep 19, 2015 at 4:22 AM, Rad Gruchalski  wrote:
> Should be rather easy to package it with this little tool from Mesosphere:
> https://github.com/mesosphere/mesos-deb-packaging. I’ve done it myself for
> ubuntu 12.04 and 14.04.
> The only thing that needs to be changed are the dependencies, for ubuntu
> this was:
>
> diff --git a/build_mesos b/build_mesos
> index 81561bc..f756ef0 100755
> --- a/build_mesos
> +++ b/build_mesos
> @@ -313,9 +313,10 @@ function deb_ {
> --deb-recommends zookeeperd
> --deb-recommends zookeeper-bin
> -d 'java-runtime-headless'
> -   -d libcurl3
> -   -d libsvn1
> -   -d libsasl2-modules
> +   -d libcurl4-nss-dev
> +   -d libsasl2-dev
> +   -d libapr1-dev
> +   -d libsvn-dev
>
> It does look like the tool can build RPMs.
>
> Kind regards,
> Radek Gruchalski
> 
ra...@gruchalski.com
> de.linkedin.com/in/radgruchalski/
>
> Confidentiality:
> This communication is intended for the above-named person and may be
> confidential and/or legally privileged.
> If it has come to you in error you must take no action based on it, nor must
> you copy or show it to anyone; please delete/destroy and inform the sender
> immediately.
>
> On Saturday, 19 September 2015 at 04:09, craig w wrote:
>
> Mesosphere provides packages, you can find more information here:
> https://mesosphere.com/downloads/
>
> As of right now, they don't seem to have a 0.24.0 package.
>
> On Fri, Sep 18, 2015 at 8:51 PM, Brian Hicks  wrote:
>
> We've got some experimental packages at bintray.com/asteris/mantl-rpm,
> source is at github.com/asteris-llc/mesos-packaging. They can really use
> some testing if you wanted to give them a try. Configuration is a bit
> different than the Mesosphere packages, see the repo for details.
>
> On Sep 18, 2015 7:01 PM, "Zameer Manji"  wrote:
>
> Hey,
>
> Does the Apache Mesos project provide OS packages for installation? I
> haven't been able to find any for the 0.24 release and I think having them
> would make installing Mesos a lot easier.
>
> --
> Zameer Manji
>
>
>
>
> --
>
> https://github.com/mindscratch
> https://www.google.com/+CraigWickesser
> https://twitter.com/mind_scratch
> https://twitter.com/craig_links
>
>


Re: [VOTE] Release Apache Mesos 0.24.1 (rc1)

2015-09-19 Thread haosdent
I use
```
sudo make -j8 distcheck
```
do test.
Passed in Ubuntu 14.04.
But could not pass in CentOS 6.6 because of DockerContainerizerTest.

On Sat, Sep 19, 2015 at 9:21 AM, Adam Bordelon  wrote:

> Hi friends,
>
> Please vote on releasing the following candidate as Apache Mesos 0.24.1.
>
> 0.24.1 includes the following:
>
> 
> * [MESOS-2986] - Docker version output is not compatible with Mesos
> * [MESOS-3136] - COMMAND health checks with Marathon 0.10.0 are broken
>
> The CHANGELOG for the release is available at:
>
> https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=blob_plain;f=CHANGELOG;hb=0.24.1-rc1
>
> 
>
> The candidate for Mesos 0.24.1 release is available at:
> https://dist.apache.org/repos/dist/dev/mesos/0.24.1-rc1/mesos-0.24.1.tar.gz
>
> The tag to be voted on is 0.24.1-rc1:
> https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=commit;h=0.24.1-rc1
>
> The MD5 checksum of the tarball can be found at:
>
> https://dist.apache.org/repos/dist/dev/mesos/0.24.1-rc1/mesos-0.24.1.tar.gz.md5
>
> The signature of the tarball can be found at:
>
> https://dist.apache.org/repos/dist/dev/mesos/0.24.1-rc1/mesos-0.24.1.tar.gz.asc
>
> The PGP key used to sign the release is here:
> https://dist.apache.org/repos/dist/release/mesos/KEYS
>
> The JAR is up in Maven in a staging repository here:
> https://repository.apache.org/content/repositories/orgapachemesos-1068
>
> Please vote on releasing this package as Apache Mesos 0.24.1!
>
> The vote is open until Wed Sep 23 18:00 PDT 2015 and passes if a majority
> of at least 3 +1 PMC votes are cast.
>
> [ ] +1 I tested this package. Release it as Apache Mesos 0.24.1
> [ ] -1 Do not release this package because ...
>
> Thanks,
> -Adam-
>



-- 
Best Regards,
Haosdent Huang