blob: 0076bcaa00a4ecfc5cfeb2b9ab53f9eeef025c47 [file] [log] [blame]
The Dockerfile in this directory will build a Docker image for running
XOS using the Django development server. It copies whatever files are
in the local repository into the image. Here's how to do it:
1. A minimal initial_data.json is provided. The login credentials
for this initial_data.json are username=padmin@vicci.org,
password=letmein.
This initial_data.json doesn't contain any nodes and is suitable
for fresh installations. To obtain an initial_data.json (for demo
purposes) that contains an interesting set of Nodes and Slices,
a dump can be made on portal.opencloud.us:
1) log in to portal, and run:
$ sudo /opt/xos/scripts/opencloud dumpdata
2) replace the initial_data.json file with the dumpdata
file produced above.
2. $ docker build -t xos .
3. $ docker run -t -i -p 8000:8000 xos
4. Now you will have a bash prompt as root inside the XOS container.
Start up XOS:
# /opt/xos/scripts/opencloud runserver
You can access the XOS login at http:<server>:8000, where <server> is
the name of the server running Docker.
5. From another terminal window, you can run following command to find
the running container id
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a3b668454d21 xos:latest "/bin/bash" 3 hours ago Up 3 hours 0.0.0.0:8000->8000/tcp romantic_bohr
and then you can have another bash prompt (in a different TTY) as root inside the XOS container.
$ docker exec -it a3b668454d21 bash
and start observer
# python /opt/xos/xos-observer.py
STILL TO DO
-----------
* Test Observer