You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Setting up the DCOS Vagrant development environment
1
+
# Setting up the DC/OS Vagrant development environment
2
2
3
-
Unfortunately there is no suitable setup with just Mesos, so we're going to have to roll out the official DCOS development environment which is based on Vagrant and VirtualBox. Do not try this with less than 32GB of RAM.
3
+
Unfortunately there is no suitable setup with just Mesos, so we're going to have to roll out the
4
+
official DC/OS development environment which is based on Vagrant and VirtualBox. Do not try this
See [the DCOS Vagrant README](https://github.com/dcos/dcos-vagrant/blob/master/README.md) for more information.
21
+
See [the DC/OS Vagrant README](https://github.com/dcos/dcos-vagrant/blob/master/README.md) for more information.
20
22
21
23
## Setting up O² software
22
24
23
-
For this we need [`fpctl`](https://github.com/AliceO2Group/Control/tree/master/fpctl). Install it as [instructed](https://github.com/AliceO2Group/Control/blob/master/fpctl/README.md) with `fpctl setup`, then copy into the `fpctl` configuration directory the inventory file for DCOS Vagrant.
25
+
This bit really depends on what we want to run. As a minimum, the executor and occ plugin must be installed
26
+
on the DC/OS cluster, and the easiest way to do this is from aliBuild-generated RPMs `alisw-Control` including
27
+
`alisw-Control-OCCPlugin`.
28
+
29
+
[`fpctl`](https://github.com/AliceO2Group/Control/tree/master/fpctl) can help with this. Install it
30
+
as [instructed](https://github.com/AliceO2Group/Control/blob/master/fpctl/README.md) with
31
+
`fpctl setup`, then copy into the `fpctl` configuration directory the inventory file for DC/OS Vagrant.
Then we run `fpctl` to install O² software and configuration. This will also set some Mesos agent attributes which are necessary for matching an O² role to the correct machine. Ansible will spit out some errors, which are generally safe to ignore in this case.
36
+
Then we run `fpctl` to install O² software and configuration. This will also set some Mesos agent
37
+
attributes which can be useful for matching an O² role to the correct machine. Ansible will spit
38
+
out some errors, which are generally safe to ignore in this case.
29
39
```bash
30
40
$ fpctl deploy -e "ignore_errors=yes"
31
41
```
32
42
33
-
If `fpctl` prompts for it, the password for the `vagrant` user on the DCOS VMs is `vagrant`.
43
+
If `fpctl` prompts for it, the password for the `vagrant` user on the DC/OS VMs is `vagrant`.
This part assumes you have already set up the Go environment, fetched the sources and built `o2control-core` and `o2control-executor` in `bin`, deployed the DCOS Vagrant development environment and set up O² on this cluster with `fpctl`.
3
+
This part assumes you have already set up the Go environment, fetched the sources and built
4
+
`o2control-core` and `o2control-executor` in `bin`, deployed the DC/OS Vagrant development
5
+
environment and set up the software you wish to run on this cluster (for example with `fpctl`).
4
6
5
7
## grpcc
6
8
7
-
In order to talk to `o2control-core` we can use `coconut`, or we can make calls directly with a gRPC client, such as [`grpcc`](https://github.com/njpatel/grpcc).
9
+
In order to talk to `o2control-core` we can use `coconut`, or we can make calls directly with a gRPC client,
10
+
such as [`grpcc`](https://github.com/njpatel/grpcc).
8
11
9
-
Assuming you have installed Node.js and `npm` (on CC7 `$ sudo yum install http-parser nodejs npm`), the installation with `npm` is straightforward.
12
+
Assuming you have installed Node.js and `npm` (on CC7 `$ sudo yum install http-parser nodejs npm`), the
13
+
installation with `npm` is straightforward.
10
14
```bash
11
-
$ npm install -g grpcc
15
+
$ sudo npm install -g grpcc
12
16
```
13
17
14
18
## Putting it all together
15
19
16
-
Assuming the DCOS Vagrant environment is up, a Mesos master will be running at `m1.dcos` with:
17
-
*DCOS interface at [`http://m1.dcos/`](http://m1.dcos/),
20
+
Assuming the DC/OS Vagrant environment is up, a Mesos master will be running at `m1.dcos` with:
21
+
*DC/OS interface at [`http://m1.dcos/`](http://m1.dcos/),
18
22
* Mesos interface at [`http://m1.dcos/mesos/`](http://m1.dcos/mesos/),
19
23
* Marathon interface at [`http://m1.dcos/marathon/`](http://m1.dcos/marathon/).
20
24
21
-
The `hacking` directory contains some wrapper scripts that rely on a Mesos master at `m1.dcos` and make running `o2control-core` easy.
25
+
The `hacking` directory contains some wrapper scripts that rely on a Mesos master at `m1.dcos` and
26
+
make running `o2control-core` easy.
22
27
23
-
It also contains a dummy configuration file (`example-config.yaml`) which simulates what should normally be a Consul instance.
28
+
It also contains a dummy configuration file (`config.yaml`) which simulates what should normally be
0 commit comments