d 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"
>>> }
>>> },
>>&g
;>>> "cpus": 1,
>>>> "mem": 512,
>>>> "container": {
>>>> "type": "DOCKER",
>>>> "docker": {
>>>> "image": "wordpress",
>>>
ress",
>> "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 t
mysql service before starting the wordpress.service.
> Search for the Marathon REST API for more information.
>
> Luck!
>
>
>
>
>
>
>
> --
> *From*: "Stefano Bianchi" <jazzist...@gmail.com>
> *Sent*: Wednesday
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" <jazzist...@gmail.com>
Sent: Wednesday, April 27, 20
t;>>> container and use --link on the command line, does that work?
>>>>
>>>> --
>>>>
>>>> Aaron Carey
>>>> Production Engineer - Cloud Pipeline
>>>> Industrial Light & Magic
>>>> London
>>>> 020
nchi [jazzist...@gmail.com]
Sent: 26 April 2016 16:43
To: user@mesos.apache.org
Subject: RE: Launch docker container from Marathon UI
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/201
-
>> *From:* Stefano Bianchi [jazzist...@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
st...@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
Carey
> > Production Engineer - Cloud Pipeline Industrial Light & Magic London
> > 020 3751 9150
> > From: Stefano Bianchi [jazzist...@gmail.com (mailto:jazzist...@gmail.com)]
> > Sent: 26 April 2016 16:23
> > To: user@mesos.apache.org (mailto:user@mesos.apache.o
zist...@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 g
haproxy.
>
> I hope this helps!
>
> Aaron
>
> --
>
> Aaron Carey
> Production Engineer - Cloud Pipeline
> Industrial Light & Magic
> London
> 020 3751 9150
>
> --
> *From:* June Taylor [j...@umn.edu]
> *Sent:* 26 April
agic
London
020 3751 9150
From: June Taylor [j...@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 containe
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
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
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
ra...@gruchalski.com (mailto:ra...@gruchalski.com)
(mailto:ra...@gruchalski.com)
de.linkedin.com/in/radgruchalski/
The docker container you're using seems to be expecting environment
variables which you have not supplied.
Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota
On Tue, Apr 26, 2016 at 8:56 AM, Stefano Bianchi
wrote:
> jupyter is
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?
However thank you so much to all!
2016-04-26 15:22 GMT+02:00 Stefano Bianchi :
> i found the answer by my self sorry if i disturbed you.
>
> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>
>> Now that it is running, how can i check the User Interface?
i found the answer by my self sorry if i disturbed you.
2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
> Now that it is running, how can i check the User Interface?
>
>
> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>
>> Yes, now it's running!!! June you
Yes, now it's running!!! June you are awesome!!!
2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
> 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
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 :
> June i tried to run your json, but the task is waiting, and if starts it
> failed
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
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": [
{
Stefano,
I hope this information is helpful:
You should specify the docker hub path, which is the what you can see after
the Docker Pull command on the Hub page. In your case, simply the word:
"wordpress" without quotes, is what you would use as the Image.
You will also need to specify port
Here’s the up to date URL:
https://mesosphere.github.io/marathon/docs/generated/api.html#v2_apps_post
Best regards,
Radek Gruchalski
ra...@gruchalski.com (mailto:ra...@gruchalski.com)
(mailto:ra...@gruchalski.com)
de.linkedin.com/in/radgruchalski/
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
28 matches
Mail list logo