Andy Bavier | e4b346e | 2015-02-06 16:39:06 -0500 | [diff] [blame] | 1 | The Dockerfile in this directory will build a Docker image for running |
Andy Bavier | bb4e707 | 2015-02-06 16:52:21 -0500 | [diff] [blame] | 2 | XOS using the Django development server. It copies whatever files are |
| 3 | in the local repository into the image. Here's how to do it: |
Andy Bavier | e4b346e | 2015-02-06 16:39:06 -0500 | [diff] [blame] | 4 | |
| 5 | 1. Currently planetstack/core/fixtures/initial_data.json is broken! |
| 6 | Overwrite this file with a working fixture, e.g., by dumping |
| 7 | portal.opencloud.us's database: |
| 8 | |
| 9 | $ sudo /opt/xos/scripts/opencloud dumpdata |
| 10 | |
| 11 | 2. $ docker build -t xos . |
| 12 | |
| 13 | 3. $ docker run -t -i -p 8000:8000 xos |
| 14 | |
| 15 | 4. Now you will have a bash prompt as root inside the XOS container. |
| 16 | Start up XOS: |
| 17 | |
| 18 | # /opt/xos/scripts/opencloud runserver |
| 19 | |
| 20 | You can access the XOS login at http:<server>:8000, where <server> is |
Andy Bavier | a206543 | 2015-02-06 16:49:59 -0500 | [diff] [blame] | 21 | the name of the server running Docker. |
| 22 | |
| 23 | STILL TO DO |
| 24 | ----------- |
| 25 | * Test Observer |