[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: Launch docker container from Marathon UI
From:       haosdent <haosdent () gmail ! com>
Date:       2016-04-27 17:56:30
Message-ID: CAFt=RONt6mGKQM4ieqUEzcGomyXwTcXZrRrV4dgwmfZUysuiJw () mail ! gmail ! com
[Download RAW message or body]

Do you mean hadoop ports? You could find hadoop default ports at here.
http://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/

On Wed, Apr 27, 2016 at 9:59 PM, Stefano Bianchi <jazzista88@gmail.com>
wrote:

> of course the port is opened
>
> 2016-04-27 15:53 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com>:
>
>> ok now i started hadoop, i have just to wait the pull process end.
>> mesos assign a port to this task but if i go to the SLAVE_IP:PORT i
>> cannot see anything.
>> On which pot hadoop is commonly viewable?
>>
>> 2016-04-27 15:13 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com>:
>>
>>> Since i already mentioned, anyone of you tried to run hadoop as docker
>>> container from marathon?
>>> i tried with this simple json:
>>>
>>> {
>>>
>>>   "id": "hadoop",
>>>
>>>   "cpus": 1,
>>>
>>>   "mem": 1000,
>>>
>>>   "container": {
>>>
>>>     "type": "DOCKER",
>>>
>>>     "docker": {
>>>
>>>       "image": "sequenceiq/hadoop-docker:2.7.1",
>>>
>>>       "network": "HOST"
>>>
>>>     }
>>>
>>>   }
>>>
>>> }
>>>
>>> the app appears as running but the bar is yellow and on mesos i see
>>> staged.
>>> The container is more or less 800 MB probably i need to wait that pull
>>> operation ends? Maybe the i need to give more ram and also some storage?
>>>
>>> 2016-04-27 14:07 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com>:
>>>
>>>> Thank you Guillermo Rodriguez
>>>> I will try your solution as soon as possible since wordpress is not the
>>>> goal task i wanna run, it was just an example to understand how to launch a
>>>> docker container, and of course i have chosen the easiest one :P
>>>> However, i correctly run Jenkins, Jupyter and Owncloud, now i'm trying
>>>> to do the same with hadoop.
>>>> Thanks to all guys.
>>>>
>>>> 2016-04-27 12:54 GMT+02:00 Guillermo Rodriguez <guimo@spritekin.com>:
>>>>
>>>>> Sorry if it has been answered before.
>>>>> You need mesos-dns.
>>>>> Start your mysql service on marathon, then mesos-dns will have an
>>>>> entry called mysql.marathon.mesos regardless of where the service is
>>>>> started you can always use that URL to resolve the mysql service.
>>>>>
>>>>> Then you start wordpress and specify that your mysql server is
>>>>> mysql.marathon.mesos. If you need to setup an env variable in the wordpress
>>>>> definition you use the env section like:
>>>>> {
>>>>>   "id": "wordpress",
>>>>>   "cpus": 1,
>>>>>   "mem": 512,
>>>>>   "container": {
>>>>>     "type": "DOCKER",
>>>>>     "docker": {
>>>>>       "image": "wordpress",
>>>>>       "network": "HOST"
>>>>>     }
>>>>>   },
>>>>>   "env": {
>>>>>       "WORDPRESS_DB_HOST": "mysql.marathon.mesos:3306",
>>>>>   }
>>>>> }
>>>>>
>>>>> Marathon also allows to add dependencies on startup so you can request
>>>>> marathon to start the mysql service before starting the wordpress.service.
>>>>> Search for the Marathon REST API for more information.
>>>>>
>>>>> Luck!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> *From*: "Stefano Bianchi" <jazzista88@gmail.com>
>>>>> *Sent*: Wednesday, April 27, 2016 2:53 AM
>>>>>
>>>>> *To*: user@mesos.apache.org
>>>>> *Subject*: Re: Launch docker container from Marathon UI
>>>>>
>>>>> Yes i guess i understood, so when i star a socker container like
>>>>> wordpress this app could have the need to contact another container as
>>>>> mysql, here project calico should be an efficient way to make this.
>>>>> Ok i will try, just to understand, first i run the mysql, then mesos
>>>>> will allocate it on a certain slave, then i need to run wordpress. How can
>>>>> i specify where is the mysql container in marathon UI?
>>>>>
>>>>> 2016-04-26 17:48 GMT+02:00 June Taylor <june@umn.edu>:
>>>>>
>>>>>> Stefano,
>>>>>>
>>>>>> You would want to search for an appropriate image on Docker Hub. Here
>>>>>> is one I have NO experience with: https://hub.docker.com/_/mysql/
>>>>>>
>>>>>> You would then need to learn about how the image is expecting to be
>>>>>> configured, so you can set it up appropriately.
>>>>>>
>>>>>> This is not really a fully thought out solution. I assume you're
>>>>>> trying to do this for more of a proof-of-concept, though. So it may be fine
>>>>>> for your needs.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> June Taylor
>>>>>> System Administrator, Minnesota Population Center
>>>>>> University of Minnesota
>>>>>>
>>>>>> On Tue, Apr 26, 2016 at 10:43 AM, Stefano Bianchi <
>>>>>> jazzista88@gmail.com> wrote:
>>>>>>
>>>>>>> My problem is this, where can i find the mysql container? I have
>>>>>>> just said to marathon to rim a wordpress docker container, without specify
>>>>>>> mysql one.
>>>>>>> Il 26/apr/2016 17:39, "Aaron Carey" <acarey@ilm.com> ha scritto:
>>>>>>>
>>>>>>>> If you run the wordpress container on a different host to the mysql
>>>>>>>> container and use --link on the command line, does that work?
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Aaron Carey
>>>>>>>> Production Engineer - Cloud Pipeline
>>>>>>>> Industrial Light & Magic
>>>>>>>> London020 3751 9150
>>>>>>>>
>>>>>>>> ------------------------------
>>>>>>>> *From:* Stefano Bianchi [jazzista88@gmail.com]
>>>>>>>> *Sent:* 26 April 2016 16:23
>>>>>>>> *To:* user@mesos.apache.org
>>>>>>>> *Subject:* RE: Launch docker container from Marathon UI
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Aaron
>>>>>>>> Actually both mesos-dns and calico are running even though these
>>>>>>>> containers im running are not, yet, using the calico ipaddr specific in
>>>>>>>> json description.
>>>>>>>> So i guess it is a problem of bridging, i guess simply specify HOST
>>>>>>>> option on container field in Marathon UI
>>>>>>>> Il 26/apr/2016 16:59, "Aaron Carey" <acarey@ilm.com> ha scritto:
>>>>>>>>
>>>>>>>>> --link in docker should really be avoided when using
>>>>>>>>> marathon/mesos as it implies the containers are on the same host, but this
>>>>>>>>> will not always be the case when mesos schedules your containers (also I
>>>>>>>>> think it's being deprecated in docker anyway.. not sure though?).
>>>>>>>>>
>>>>>>>>> This problem looks like one of service discovery within the mesos
>>>>>>>>> cluster: how does one service contact the other when it doesn't know which
>>>>>>>>> host the other service may have landed on?
>>>>>>>>>
>>>>>>>>> There are several different solutions for service discovery, you
>>>>>>>>> can look into some like Project Calico to offer a network layer to docker
>>>>>>>>> or try dns based solutions like Mesos-dns or Consul (along with
>>>>>>>>> mesos-consul). I think marathon also has some concept of service discovery
>>>>>>>>> built in too if you use something like haproxy.
>>>>>>>>>
>>>>>>>>> I hope this helps!
>>>>>>>>>
>>>>>>>>> Aaron
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Aaron Carey
>>>>>>>>> Production Engineer - Cloud Pipeline
>>>>>>>>> Industrial Light & Magic
>>>>>>>>> London020 3751 9150
>>>>>>>>>
>>>>>>>>> ------------------------------
>>>>>>>>> *From:* June Taylor [june@umn.edu]
>>>>>>>>> *Sent:* 26 April 2016 15:22
>>>>>>>>> *To:* user@mesos.apache.org
>>>>>>>>> *Subject:* Re: Launch docker container from Marathon UI
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Stefano,
>>>>>>>>>
>>>>>>>>> The docker run flag --link is intended to connect the container to
>>>>>>>>> another running container. I do not know how this would operate in
>>>>>>>>> marathon. Perhaps it would be an application group which starts up the
>>>>>>>>> mysql docker image first, then the Wordpress docker image after it.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> June Taylor
>>>>>>>>> System Administrator, Minnesota Population Center
>>>>>>>>> University of Minnesota
>>>>>>>>>
>>>>>>>>> On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi <
>>>>>>>>> jazzista88@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Thanks *Rad* Gruchalski, actually i'm trying to make a json file
>>>>>>>>>> that "translate" this command in marathon:
>>>>>>>>>>
>>>>>>>>>> docker run --name some-wordpress --link some-mysql:mysql -d
>>>>>>>>>> wordpress
>>>>>>>>>>
>>>>>>>>>> i guess the error is relate to the fact that i'm not specifying --link
>>>>>>>>>> some-mysql:mysql
>>>>>>>>>> My problem is that i don't know how to do that, i tried to fill
>>>>>>>>>> environment variable fields:
>>>>>>>>>>
>>>>>>>>>> Key = link
>>>>>>>>>> Value = some-mysql:mysql
>>>>>>>>>>
>>>>>>>>>> But in this way the app does not work as well. How can i
>>>>>>>>>> configure these env variables?
>>>>>>>>>>
>>>>>>>>>> 2016-04-26 16:01 GMT+02:00 Rad Gruchalski <radek@gruchalski.com>:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> It says exactly what the problem is.
>>>>>>>>>>>
>>>>>>>>>>> Start a marathon task with correct environment variables in env
>>>>>>>>>>> and you will be fine.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Best regards,?
>>>>>>>>>>> Radek Gruchalski
>>>>>>>>>>> ?radek@gruchalski.com? <radek@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 Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:
>>>>>>>>>>>
>>>>>>>>>>> jupyter is working fine.
>>>>>>>>>>> i tried to run wordpress and i get this error in stderr of
>>>>>>>>>>> mesos:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP
>>>>>>>>>>> environment variables
>>>>>>>>>>>
>>>>>>>>>>>   Did you forget to --link some_mysql_container:mysql or set an
>>>>>>>>>>> external db
>>>>>>>>>>>
>>>>>>>>>>>   with -e WORDPRESS_DB_HOST=hostname:port?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Some one of you know this issue?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:51 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> However thank you so much to all!
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:22 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> i found the answer by my self sorry if i disturbed you.
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> Now that it is running, how can i check the User Interface?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> Yes, now it's running!!! June you are awesome!!!
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> i have done these 2 commands, now jupyter is in deploying in
>>>>>>>>>>> marathon, staging in mesos.
>>>>>>>>>>> Is there some additional configuration needed?
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> June i tried to run your json, but the task is waiting, and if
>>>>>>>>>>> starts it failed immediately.
>>>>>>>>>>>
>>>>>>>>>>> I guess because i did not type this commands:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    1.
>>>>>>>>>>>
>>>>>>>>>>>    echo 'docker,mesos' > /etc/mesos-slave/containerizers
>>>>>>>>>>>
>>>>>>>>>>>    2.
>>>>>>>>>>>
>>>>>>>>>>>    $ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Could it be the problem?
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> Thank you June taylor, it is axactly what i was intending.
>>>>>>>>>>> if it is not disturbing you, i try jupyter notebook as well,
>>>>>>>>>>> just to make some tests on how to launch marathon.
>>>>>>>>>>> stay tuned :)
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi <jazzista88@gmail.com
>>>>>>>>>>> >:
>>>>>>>>>>>
>>>>>>>>>>> thanks haosdent.
>>>>>>>>>>> actually i have run this kind of apps through rest api.
>>>>>>>>>>> Now i want learn how to laung docker files. I found this exaple:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> {
>>>>>>>>>>>   "container": {
>>>>>>>>>>>     "type": "DOCKER",
>>>>>>>>>>>     "docker": {
>>>>>>>>>>>       "network": "HOST",
>>>>>>>>>>>       "image": "group/image"
>>>>>>>>>>>     },
>>>>>>>>>>>     "volumes": [
>>>>>>>>>>>       {
>>>>>>>>>>>         "containerPath": "/etc/a",
>>>>>>>>>>>         "hostPath": "/var/data/a",
>>>>>>>>>>>         "mode": "RO"
>>>>>>>>>>>       },
>>>>>>>>>>>       {
>>>>>>>>>>>         "containerPath": "/etc/b",
>>>>>>>>>>>         "hostPath": "/var/data/b",
>>>>>>>>>>>         "mode": "RW"
>>>>>>>>>>>       }
>>>>>>>>>>>     ]
>>>>>>>>>>>   }}
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I am able to link the correspondent field in the marathon UI
>>>>>>>>>>> with what is written in this json.
>>>>>>>>>>> What i need to understand is, what i should write in:
>>>>>>>>>>>
>>>>>>>>>>>  "image": "group/image"
>>>>>>>>>>>
>>>>>>>>>>> i mean, with what i have to replace group and image?
>>>>>>>>>>> For instance, if i would run wordpress container on docker hub
>>>>>>>>>>> what i should put replacing "group/image" ?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2016-04-26 14:30 GMT+02:00 haosdent <haosdent@gmail.com>:
>>>>>>>>>>>
>>>>>>>>>>> This is marathon REST API document:
>>>>>>>>>>> https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps
>>>>>>>>>>> . Usually we define a task json file and call the rest api.
>>>>>>>>>>>
>>>>>>>>>>> For example, create tasks.json which content is
>>>>>>>>>>>
>>>>>>>>>>> ```
>>>>>>>>>>> {
>>>>>>>>>>> "id": "/test-sleep",
>>>>>>>>>>> "cmd": "sleep 200"
>>>>>>>>>>> }
>>>>>>>>>>> ```
>>>>>>>>>>>
>>>>>>>>>>> And
>>>>>>>>>>>
>>>>>>>>>>> ```
>>>>>>>>>>> curl -X POST -H "Content-type: application/json" http://${YOUR_MARATHON_ADDR}:8080/v2/apps
>>>>>>>>>>> -d @tasks.json
>>>>>>>>>>> ```
>>>>>>>>>>>
>>>>>>>>>>> You could find more field definitions in their document.
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Apr 26, 2016 at 8:24 PM, Stefano Bianchi <
>>>>>>>>>>> jazzista88@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi guys
>>>>>>>>>>>
>>>>>>>>>>> i'm trying to follow the instructions on mesosphere
>>>>>>>>>>> documentation, but it is a little bit unlear for me that i am new to this
>>>>>>>>>>> world.
>>>>>>>>>>> i' would like to launch a wordpress container, present on docker
>>>>>>>>>>> hub here https://hub.docker.com/_/wordpress/ , from marathon UI
>>>>>>>>>>> but i don't understand the mechanism.
>>>>>>>>>>> I understood that i don't have to specify a command in "Command"
>>>>>>>>>>> field, but i don't know how to fill the dockers fields in marathon UI to
>>>>>>>>>>> launch wordpress container.
>>>>>>>>>>> Could you please help me or tell me where i can find a clearer
>>>>>>>>>>> documentation?
>>>>>>>>>>>
>>>>>>>>>>> Thanks.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best Regards,
>>>>>>>>>>> Haosdent Huang
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>
>>>
>>
>


-- 
Best Regards,
Haosdent Huang

[Attachment #3 (text/html)]

<div dir="ltr">Do you mean hadoop ports? You could find hadoop default ports at here. \
<a href="http://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/"> \
http://blog.cloudera.com/blog/2009/08/hadoop-default-ports-quick-reference/</a></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 9:59 PM, \
Stefano Bianchi <span dir="ltr">&lt;<a href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">of course the port is opened</div><div \
class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div \
class="gmail_quote">2016-04-27 15:53 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">ok now i started hadoop, i have just to wait \
the pull process end.<br><div>mesos assign a port to this task but if i go to the \
SLAVE_IP:PORT i cannot see anything.<br>On which pot hadoop is commonly \
viewable?</div></div><div><div><div class="gmail_extra"><br><div \
class="gmail_quote">2016-04-27 15:13 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Since i already mentioned, anyone of you tried \
to run hadoop as docker container from marathon?<br>i tried with this simple \
json:<div><br></div><div>







<p><span>{</span></p>
<p><span>   &quot;id&quot;: &quot;hadoop&quot;,</span></p>
<p><span>   &quot;cpus&quot;: 1,</span></p>
<p><span>   &quot;mem&quot;: 1000,</span></p><span>
<p><span>   &quot;container&quot;: {</span></p>
<p><span>      &quot;type&quot;: &quot;DOCKER&quot;,</span></p>
<p><span>      &quot;docker&quot;: {</span></p>
</span><p><span>         &quot;image&quot;: \
&quot;sequenceiq/hadoop-docker:2.7.1&quot;</span>,</p> <p><span>         \
&quot;network&quot;: &quot;HOST&quot;</span></p> <p><span>      }</span></p>
<p><span>   }</span></p>
<p><span>}</span></p>
<p><span></span>the app appears as running but the bar is yellow and on mesos i see \
staged.<br>The container is more or less 800 MB probably i need to wait that pull \
operation ends? Maybe the i need to give more ram and also some \
storage?</p></div></div><div><div><div class="gmail_extra"><br><div \
class="gmail_quote">2016-04-27 14:07 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Thank you Guillermo Rodriguez<div>I will try \
your solution as soon as possible since wordpress is not the goal task i wanna run, \
it was just an example to understand how to launch a docker container, and of course \
i have chosen the easiest one :P<br>However, i correctly run Jenkins, Jupyter and \
Owncloud, now i&#39;m trying to do the same with hadoop.</div><div>Thanks to all \
guys.</div></div><div><div><div class="gmail_extra"><br><div \
class="gmail_quote">2016-04-27 12:54 GMT+02:00 Guillermo Rodriguez <span \
dir="ltr">&lt;<a href="mailto:guimo@spritekin.com" \
target="_blank">guimo@spritekin.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span \
style="font-family:Arial,Helvetica,Sans-Serif;font-size:12px"><div>Sorry if it has \
been answered before.</div>

<div>You need mesos-dns.  </div>

<div>Start your mysql service on marathon, then  mesos-dns will have an entry called \
mysql.marathon.mesos regardless of where the service is started you can always use \
that URL to resolve the mysql service.</div>

<div>  </div>

<div>Then you start wordpress and specify that your mysql server is \
mysql.marathon.mesos. If you need to setup an env variable in the wordpress \
definition you use the env section like:</div>

<div>{<br>
   &quot;id&quot;: &quot;wordpress&quot;,<br>
   &quot;cpus&quot;: 1,<br>
   &quot;mem&quot;: 512,<span><br>
   &quot;container&quot;: {<br>
      &quot;type&quot;: &quot;DOCKER&quot;,<br>
      &quot;docker&quot;: {<br></span>
         &quot;image&quot;: &quot;wordpress&quot;,<br>
         &quot;network&quot;: &quot;HOST&quot;<br>
      }<br>
   },<br>
   &quot;env&quot;: {<br>
         &quot;WORDPRESS_DB_HOST&quot;: &quot;mysql.marathon.mesos:3306&quot;,<br>
   }</div>

<div>}</div>

<div>  </div>

<div>Marathon also allows to add dependencies on startup so you can request marathon \
to start the mysql service before starting the wordpress.service. Search for the \
Marathon REST API  for more information.</div>

<div>  </div>

<div>Luck!</div>

<div>  </div>

<div>  </div>

<div>  </div>

<div>  </div>

<div>  </div>

<div>  </div>

<div>  </div>

<hr align="center" size="2" width="100%">
<div><span style="font-family:tahoma,arial,sans-serif;font-size:10pt"><b>From</b>: \
&quot;Stefano Bianchi&quot; &lt;<a href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;<br> <b>Sent</b>: Wednesday, April 27, \
2016 2:53 AM<div><div><br> <b>To</b>: <a href="mailto:user@mesos.apache.org" \
target="_blank">user@mesos.apache.org</a><br> <b>Subject</b>: Re: Launch docker \
container from Marathon UI</div></div></span><div><div>

<div>  </div>

<div dir="ltr">Yes i guess i understood, so when i star a socker container like \
wordpress this app could have the need to contact another container as mysql, here \
project calico should be an efficient way to make this.<br> Ok i will try, just to \
understand, first i run the mysql, then mesos will allocate it on a certain slave, \
then i need to run wordpress. How can i specify where is the mysql container in \
marathon UI?</div>

</div></div><div class="gmail_extra">  
<div class="gmail_quote"><div><div>2016-04-26 17:48 GMT+02:00 June Taylor <span \
dir="ltr">&lt;<a href="mailto:june@umn.edu" \
target="_blank">june@umn.edu</a>&gt;</span>:

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div> <div dir="ltr">Stefano,
<div>  </div>

<div>You would want to search for an appropriate image on Docker Hub. Here is one I \
have NO experience with: <a href="https://hub.docker.com/_/mysql/" \
target="_blank">https://hub.docker.com/_/mysql/</a></div>

<div>  </div>

<div>You would then need to learn about how the image is expecting to be configured, \
so you can set it up appropriately.</div>

<div>  </div>

<div>This is not really a fully thought out solution. I assume you&#39;re trying to \
do this for more of a proof-of-concept, though. So it may be fine for your \
needs.</div> </div>

</div></div><div class="gmail_extra"><div><div>  
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">  </div>

<div dir="ltr"><span>Thanks,</span></div>

<div dir="ltr"><span>June Taylor</span></div>
</div>

<div><span>System Administrator, Minnesota Population Center</span></div>

<div><span>University of Minnesota</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
  

</div></div><div>
<div>
<div class="gmail_quote"><div><div>On Tue, Apr 26, 2016 at 10:43 AM, Stefano Bianchi \
<span dir="ltr">&lt;<a href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span> wrote:

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div> <p dir="ltr">My problem is this, where can i \
find the mysql container? I have just said to marathon to rim a wordpress docker \
container, without specify mysql one.</p>

</div></div><div>
<div>
<div class="gmail_quote"><div><div>Il 26/apr/2016 17:39, &quot;Aaron Carey&quot; \
&lt;<a href="mailto:acarey@ilm.com" target="_blank">acarey@ilm.com</a>&gt; ha \
scritto:

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> <div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div><div>If \
you run the wordpress container on a different host to the mysql container and use \
--link on the command line, does that work? <div>  
<div style="font-family:Tahoma;font-size:13px">
<pre style="margin-top:14pt;margin-bottom:14pt"><font color="black" face="Tahoma" \
size="2"><span dir="ltr" style="font-size:10pt"><font face="serif">--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light &amp; Magic
London
<a><span>020 3751 9150</span></a></font></span></font></pre>
</div>
</div>

</div></div><div style="font-family:Times New \
Roman;color:#000000;font-size:16px"><div><div> <hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> \
Stefano Bianchi [<a href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>]<br> <b>Sent:</b> 26 April 2016 16:23<br>
<b>To:</b> <a href="mailto:user@mesos.apache.org" \
target="_blank">user@mesos.apache.org</a><br> <b>Subject:</b> RE: Launch docker \
container from Marathon UI</font><br>  </div>

<div>  </div>

</div></div><div><div><div>
<p dir="ltr">Hi Aaron<br>
Actually both mesos-dns and calico are running even though these containers im \
running are not, yet, using the calico ipaddr specific in json description.<br> So i \
guess it is a problem of bridging, i guess simply specify HOST option on container \
field in Marathon UI</p>

</div></div><div class="gmail_quote"><div><div>Il 26/apr/2016 16:59, &quot;Aaron \
Carey&quot; &lt;<a href="mailto:acarey@ilm.com" \
target="_blank">acarey@ilm.com</a>&gt; ha scritto:

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> <div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div><div>--link \
in docker should really be avoided when using marathon/mesos as it implies the \
containers are on the same host, but this will not always be the case when mesos \
schedules your containers (also I think it&#39;s being deprecated in docker anyway.. \
not sure though?).<br> <br>
This problem looks like one of service discovery within the mesos cluster: how does \
one service contact the other when it doesn&#39;t know which host the other service \
may have landed on?<br> <br>
There are several different solutions for service discovery, you can look into some \
like Project Calico to offer a network layer to docker or try dns based solutions \
like Mesos-dns or Consul (along with mesos-consul). I think marathon also has some \
concept of service discovery built in too if you use something like haproxy.<br> <br>
I hope this helps!<br>
<br>
Aaron
<div>  
<div style="font-family:Tahoma;font-size:13px">
<pre style="margin-top:14pt;margin-bottom:14pt"><font color="black" face="Tahoma" \
size="2"><span dir="ltr" style="font-size:10pt"><font face="serif">--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light &amp; Magic
London
<a><span>020 3751 9150</span></a></font></span></font></pre>
</div>
</div>

</div></div><div style="font-family:Times New \
Roman;color:#000000;font-size:16px"><div><div> <hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> \
June Taylor [<a href="mailto:june@umn.edu" target="_blank">june@umn.edu</a>]<br> \
<b>Sent:</b> 26 April 2016 15:22<br> <b>To:</b> <a \
href="mailto:user@mesos.apache.org" target="_blank">user@mesos.apache.org</a><br> \
<b>Subject:</b> Re: Launch docker container from Marathon UI</font><br>  </div>

<div>  </div>

</div></div><div><div><div>
<div dir="ltr">Stefano,
<div>  </div>

<div>The docker run flag --link is intended to connect the container to another \
running container. I do not know how this would operate in marathon. Perhaps it would \
be an application group which starts up the mysql docker image first, then the \
Wordpress docker image after it.</div> </div>

</div></div><div class="gmail_extra"><div><div>  
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">  </div>

<div dir="ltr">Thanks,</div>

<div dir="ltr">June Taylor</div>
</div>

<div>System Administrator, Minnesota Population Center</div>

<div>University of Minnesota</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
  

</div></div><div class="gmail_quote"><div><div>On Tue, Apr 26, 2016 at 9:20 AM, \
Stefano Bianchi <span dir="ltr"> &lt;<a href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span> wrote:

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div> <div dir="ltr">Thanks <b>Rad</b>  <span \
style="font-size:12.8px;font-weight:bold;white-space:nowrap">Gruchalski</span><span \
style="font-size:12.8px;white-space:nowrap">, actually i&#39;m trying to make a json \
file that &quot;translate&quot; this command in marathon:</span>

<div>  </div>

<div><span style="color:rgb(51,51,51);font-family:Consolas,&quot;Liberation \
Mono&quot;,Courier,monospace;font-size:16px;line-height:24px;white-space:pre-wrap;background-color:rgb(234,238,243)">docker \
run --name some-wordpress --link some-mysql:mysql -d wordpress</span></div>

<div>  </div>

<div><span style="font-size:12.8px;white-space:nowrap">i guess the error is relate to \
the fact that i&#39;m not specifying  </span><span \
style="color:rgb(51,51,51);font-family:Consolas,&quot;Liberation \
Mono&quot;,Courier,monospace;font-size:16px;line-height:24px;white-space:pre-wrap;background-color:rgb(234,238,243)">--link \
some-mysql:mysql</span></div>

<div><span style="font-size:12.8px;white-space:nowrap">My problem is that i don&#39;t \
know how to do that, i tried to fill environment variable fields:</span><br> <br>
Key =  <span style="color:rgb(51,51,51);font-family:Consolas,&quot;Liberation \
Mono&quot;,Courier,monospace;font-size:16px;line-height:24px;white-space:pre-wrap;background-color:rgb(234,238,243)">link \
</span><br> Value =  <span \
style="color:rgb(51,51,51);font-family:Consolas,&quot;Liberation \
Mono&quot;,Courier,monospace;font-size:16px;line-height:24px;white-space:pre-wrap;background-color:rgb(234,238,243)">some-mysql:mysql</span></div>


<div>  </div>

<div><span style="font-size:12.8px;white-space:nowrap">But in this way the app does \
not work as well. How can i configure these env variables?</span></div> </div>

</div></div><div>
<div>
<div class="gmail_extra">  
<div class="gmail_quote"><div><div>2016-04-26 16:01 GMT+02:00 Rad Gruchalski <span \
dir="ltr"> &lt;<a href="mailto:radek@gruchalski.com" \
target="_blank">radek@gruchalski.com</a>&gt;</span>:

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div> <div>It says exactly what the problem \
is.</div>

<div>  </div>

<div>Start a marathon task with correct environment variables in env and you will be \
fine.</div>

</div></div><div>
<div>  </div>

<p style="font-family:Helvetica;font-size:10pt;margin-bottom:0cm">  </p>

<p style="font-family:Helvetica;font-size:10pt;margin-bottom:0cm">  </p>

<p style="margin-bottom:0cm">  </p>

<p style="margin-bottom:0cm"><span><font color="#000000"><font face="Helvetica, \
sans-serif"><font style="font-size:9pt">Best regards,?<br> Radek Gruchalski<br>
?</font></font></font><font face="Helvetica, sans-serif"><font \
style="font-size:9pt"><a href="mailto:radek@gruchalski.com" \
target="_blank">radek@gruchalski.com</a><a href="mailto:radek@gruchalski.com" \
target="_blank">?</a></font></font></span></p><div><div><br> <a \
href="http://de.linkedin.com/in/radgruchalski/" target="_blank"><font \
color="#0084d1"><font face="Helvetica, sans-serif"><font \
style="font-size:9pt">de.linkedin.com/in/radgruchalski/</font></font></font></a><br> \
<br> <font color="#878787"><font face="Helvetica, sans-serif"><font \
style="font-size:8pt"><b>Confidentiality:</b></font></font></font><br> <font \
color="#878787"><font face="Helvetica, sans-serif"><font style="font-size:8pt">This \
communication is intended for the above-named person and may be confidential and/or \
legally privileged.<br> 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.</font></font></font></div></div><p></p> </div><div><div>

<div>
<div>
<p style="color:#a0a0a8">On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi \
wrote:</p>

<blockquote style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px" \
type="cite"> <div>
<div>
<div dir="ltr"><span>jupyter is working fine.<br>
i tried to run wordpress and i get this error in stderr of mesos: </span>

<div>  </div>
<span> </span>

<div>
<p><span><span>error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment \
variables</span></span></p>

<p><span><span>   Did you forget to --link some_mysql_container:mysql or set an \
external db</span></span></p>

<p><span><span>   with -e WORDPRESS_DB_HOST=hostname:port?</span></span></p>

<p>  </p>

<p>  </p>

<p><span><span>Some one of you know this issue?</span></span></p>
</div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>
<pre style="color:rgb(0,0,0);font-size:14px;line-height:16px;width:943px;min-height:664px;overflow:auto"> \
</pre>

<pre style="color:rgb(0,0,0);font-size:14px;line-height:16px;width:943px;min-height:664px;overflow:auto"> \
</pre> </div>
<span> </span></div>

<div>  
<div><span>2016-04-26 15:51 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>However thank you so much to all!</span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 15:22 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>i found the answer by my self sorry if i disturbed \
you.</span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 15:19 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>Now that it is running, how can i check the User Interface? \
</span>

<div>  </div>
<span> </span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 15:18 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>Yes, now it&#39;s running!!! June you are \
awesome!!!</span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 15:16 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>i have done these 2 commands, now jupyter is in deploying in \
marathon, staging in mesos. </span>

<div><span>Is there some additional configuration needed?</span></div>
<span> </span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 15:13 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>June i tried to run your json, but the task is waiting, and if \
starts it failed immediately. </span>

<div>  </div>
<span> </span>

<div><span>I guess because i did not type this commands:</span></div>
<span> </span>

<div>  </div>
<span> </span>

<div>
<ol style="margin-top:0px;margin-bottom:10px;color:rgb(50,53,57);font-family:&quot;Helvetica \
Neue&quot;,Helvetica,Arial,sans-serif;font-size:14px;line-height:23.8px;background-color:rgb(246,246,246)">
  <li>
	<div style="background-color:rgb(255,255,255)">
	<pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;color:rgb(51,51,51);word-wrap:break-word;border:1px \
solid rgb(204,204,204)"><span><code \
style="font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:inherit;padding:0px;color:inherit;white-space:pre-wrap;background-color:transparent"><span \
style="color:rgb(0,134,179)">echo</span> <span \
style="color:rgb(221,17,68)">&#39;docker,mesos&#39;</span> &gt; \
/etc/mesos-slave/containerizers</code></span></pre>  </div>
	</li>
	<li>
	<div style="background-color:rgb(255,255,255)">
	<pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;color:rgb(51,51,51);word-wrap:break-word;border:1px \
solid rgb(204,204,204)"><span><code \
style="font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:inherit;padding:0px;color:inherit;white-space:pre-wrap;background-color:transparent"><span \
style="color:rgb(85,85,85)">$ </span><span style="color:rgb(0,134,179)">echo</span> \
<span style="color:rgb(221,17,68)">&#39;5mins&#39;</span> &gt; \
/etc/mesos-slave/executor_registration_timeout</code></span></pre>  </div>
	</li>
</ol>
</div>
<span> </span>

<div><span>Could it be the problem?</span></div>
<span> </span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 15:02 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>Thank you June taylor, it is axactly what i was intending. \
</span>

<div><span>if it is not disturbing you, i try jupyter notebook as well, just to make \
some tests on how to launch marathon.</span></div> <span> </span>

<div><span>stay tuned :)</span></div>
<span> </span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 14:58 GMT+02:00 Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>thanks haosdent. </span>

<div><span>actually i have run this kind of apps through rest api.</span></div>
<span> </span>

<div><span>Now i want learn how to laung docker files. I found this \
exaple:</span><br>  </div>
<span> </span>

<div>
<pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;color:rgb(51,51,51);word-wrap:break-word;border:1px \
solid rgb(204,204,204)"><span><code \
style="font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:inherit;padding:0px;color:inherit;white-space:pre-wrap;background-color:transparent"><span>{</span><span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;container&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span>{</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;type&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;DOCKER&quot;</span><span>,</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;docker&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span>{</span></span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;network&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;HOST&quot;</span><span>,</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;image&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;group/image&quot;</span><span \
style="color:rgb(187,187,187)">  </span><span>},</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;volumes&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span>[</span><span \
style="color:rgb(187,187,187)">  </span><span>{</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;containerPath&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;/etc/a&quot;</span><span>,</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;hostPath&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;/var/data/a&quot;</span><span>,</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;mode&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;RO&quot;</span><span \
style="color:rgb(187,187,187)">  </span><span>},</span><span \
style="color:rgb(187,187,187)">  </span><span>{</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;containerPath&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;/etc/b&quot;</span><span>,</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;hostPath&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;/var/data/b&quot;</span><span>,</span><span \
style="color:rgb(187,187,187)">  </span><span \
style="color:navy">&quot;mode&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;RW&quot;</span><span \
style="color:rgb(187,187,187)">  </span><span>}</span><span \
style="color:rgb(187,187,187)">  </span><span>]</span><span \
style="color:rgb(187,187,187)">  </span><span>}</span><span \
style="color:rgb(187,187,187)"> </span><span>}</span></code></span></pre>
</div>
<span> </span>

<div>  </div>
<span> </span>

<div><span>I am able to link the correspondent field in the marathon UI with what is \
written in this json.</span></div> <span> </span>

<div><span>What i need to understand is, what i should write in:</span>

<pre style="font-size:13px;overflow:auto;font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857;color:rgb(51,51,51);word-wrap:break-word;border:1px \
solid rgb(204,204,204)"><span><code \
style="font-family:Menlo,Monaco,Consolas,&quot;Courier \
New&quot;,monospace;font-size:inherit;padding:0px;color:inherit;white-space:pre-wrap;background-color:transparent"><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:navy">&quot;image&quot;</span><span>:</span><span \
style="color:rgb(187,187,187)"> </span><span \
style="color:rgb(221,17,68)">&quot;group/image&quot;</span></code></span></pre> \
<span> </span></div> <span> </span>

<div><span>i mean, with what i have to replace group and image?</span></div>
<span> </span>

<div><span>For instance, if i would run wordpress container on docker hub what i \
should put replacing &quot;group/image&quot; ?</span></div> <span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span>

<div>  </div>
<span> </span></div>

<div>
<div>
<div>  
<div><span>2016-04-26 14:30 GMT+02:00 haosdent <span dir="ltr">&lt;<a \
href="mailto:haosdent@gmail.com" \
target="_blank">haosdent@gmail.com</a>&gt;</span>:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>This is marathon REST API document:  <a \
href="https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps" \
target="_blank">https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps</a> \
. Usually we define a task json file and call the rest api. </span>

<div>  </div>
<span> </span>

<div><span>For example, create tasks.json which content is  </span></div>
<span> </span>

<div>  </div>
<span> </span>

<div><span>```</span></div>
<span> </span>

<div>
<div><span>{</span></div>

<div><span>&quot;id&quot;: &quot;/test-sleep&quot;,</span></div>

<div><span>&quot;cmd&quot;: &quot;sleep 200&quot;</span></div>

<div><span>}</span></div>
</div>
<span> </span>

<div><span>```</span></div>
<span> </span>

<div>  </div>
<span> </span>

<div><span>And  </span></div>
<span> </span>

<div>  </div>
<span> </span>

<div><span>```</span></div>
<span> </span>

<div><span>curl -X POST -H &quot;Content-type: application/json&quot; \
http://${YOUR_MARATHON_ADDR}:8080/v2/apps -d @tasks.json</span></div> <span> </span>

<div><span>```</span></div>
<span> </span>

<div>  </div>
<span> </span>

<div><span>You could find more field definitions in their document.</span></div>
<span> </span></div>

<div>
<div>
<div>  
<div><span>On Tue, Apr 26, 2016 at 8:24 PM, Stefano Bianchi <span dir="ltr">&lt;<a \
href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt;</span> wrote:</span>

<blockquote type="cite">
<div>
<div dir="ltr"><span>Hi guys </span>

<div>  </div>
<span> </span>

<div><span>i&#39;m trying to follow the instructions on mesosphere documentation, but \
it is a little bit unlear for me that i am new to this world.</span></div> <span> \
</span>

<div><span>i&#39; would like to launch a wordpress container, present on docker hub \
here  <a href="https://hub.docker.com/_/wordpress/" \
target="_blank">https://hub.docker.com/_/wordpress/</a> , from marathon UI but i \
don&#39;t understand the mechanism.  </span></div> <span> </span>

<div><span>I understood that i don&#39;t have to specify a command in \
&quot;Command&quot; field, but i don&#39;t know how to fill the dockers fields in \
marathon UI to launch wordpress container.</span></div> <span> </span>

<div><span>Could you please help me or tell me where i can find a clearer \
documentation?</span></div> <span> </span>

<div>  </div>
<span> </span>

<div><span>Thanks.</span></div>
<span> </span></div>
</div>
</blockquote>
<span> </span></div>
  

<div>  </div>
</div>
</div>
<span><span><font color="#888888">-- </font></span></span>

<div><span><span><font color="#888888">Best Regards,</font></span></span>

<div><span><span><font color="#888888">Haosdent Huang</font></span></span></div>
<span><span><font color="#888888"> </font></span></span></div>
<span><span><font color="#888888"> </font></span></span></div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<span> </span></div>
</div>
</div>
</div>
</blockquote>

<div>  </div>
</div>
</div>
</div></div></blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div></span>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature">Best Regards,<br><div>Haosdent Huang</div></div> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic