>Is there a doc on how to build Mesos in CLion and debug a unit test?
Clion depends on the CMakeFiles.txt in mesos. But CMake only could build
the Agent of Mesos. If you want to run Qian Zhang's patch. You need apply
the patch by

```
$ ./support/apply-reviews.py -r 46097
```

And then following the getting started guide
<http://mesos.apache.org/gettingstarted/> to build mesos

```
$ ./bootstrap
$ mkdir build
$ cd build
$ ../configure
$ make -j8 check GTEST_FILTER=-"*"
```

Then you could run single test by

```
sudo GLOG_v=1 ./bin/mesos-tests.sh
--gtest_filter="CniIsolatorTest.ROOT_INTERNET_CURL_LaunchCommandTask"
--verbose
```

On Tue, May 17, 2016 at 8:58 PM, Jay JN Guo <guojian...@cn.ibm.com> wrote:

> - net::links() -> stout/net.hpp
> - Personally, I'm not very familiar with CLion build. Maybe somebody else
> could answer that.
> - I think this is very much related to dev mailing list, so +dev
>
> /J
>
> Frank Scholten <fr...@frankscholten.nl> wrote on 05/17/2016 20:47:12:
>
> > From: Frank Scholten <fr...@frankscholten.nl>
> > To: user@mesos.apache.org
> > Cc: Qian AZ Zhang/China/IBM@IBMCN, avin...@mesosphere.io
> > Date: 05/17/2016 20:48
> > Subject: Re: Mesos Calico CNI
>
> >
> > Thanks. I now like to run that unit test via the debugger from the
> > Mesos source try in CLion. Is there a doc on how to build Mesos in
> > CLion and debug a unit test?
> >
> > Also, where does net::links() come from? Can't find it in the sources.
> >
> >
> > On Tue, May 17, 2016 at 11:00 AM, haosdent <haosd...@gmail.com> wrote:
> > >>Is there some user documentation for this feature?
> > > Unfortunately, the document is not ready.
> > > https://issues.apache.org/jira/browse/MESOS-4771
> > >
> > >>but I am not sure what I have to do to create an IP for a task.
> > > Qian Zhang show an example of configuration in his test cases, I think
> you
> > > may take a look first.
> > > https://reviews.apache.org/r/46097/diff/7#index_header
> > >
> > > On Tue, May 17, 2016 at 4:20 PM, Frank Scholten <
> fr...@frankscholten.nl>
> > > wrote:
> > >>
> > >> Hi all,
> > >>
> > >> I tried out CNI support with Calico but I am not sure what I have to
> > >> do to create an IP for a task.
> > >>
> > >> See this sandbox repository on Github
> > >>
> > >> https://github.com/ContainerSolutions/mesos-calico-cni-sandbox
> > >>
> > >> In this repo I build the Mesos master branch and
> > >> https://github.com/projectcalico/calico-cni, create a local cluster
> > >> and deploy an application. I don't see anything in the logs about cni,
> > >> except that it loads the cni isolator.
> > >>
> > >> Is there some user documentation for this feature? If not I am happy
> > >> to write documentation once I figure out how this feature works.
> > >>
> > >> Cheers,
> > >>
> > >> Frank
> > >
> > >
> > >
> > >
> > > --
> > > Best Regards,
> > > Haosdent Huang
> >
>
>


-- 
Best Regards,
Haosdent Huang

Reply via email to