Skip to content

Commit 722b648

Browse files
committed
Merge pull request #33 from smashwilson/compose
Run a full deconst system with docker-compose
2 parents 3fd60c3 + 3ca5cd5 commit 722b648

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,39 @@ To build this documentation standalone, run:
1111
```bash
1212
make html
1313
```
14+
15+
## Running
16+
17+
This repository also includes a configuration file for *docker-compose*, to let you run the full system on a single host. To get started, you'll need to install:
18+
19+
* [Docker](https://docs.docker.com/installation/#installation) to build and launch the containers.
20+
* [docker-compose](https://docs.docker.com/compose/install/) to manage the containers' configurations.
21+
22+
Then, you can build and run the service with:
23+
24+
```bash
25+
export RACKSPACE_USERNAME=...
26+
export RACKSPACE_APIKEY=...
27+
28+
docker-compose build && docker-compose up -d
29+
```
30+
31+
To push content into your local system, you'll need to install the *preparer* with `pip`:
32+
33+
```bash
34+
# If you're using virtualenv and virtualwrapper
35+
mkvirtualenv deconst-preparer-rst --python=$(which python3)
36+
37+
# Install the preparer
38+
pip install -e git+https://github.com/deconst/preparer-rst.git#egg=deconstrst
39+
40+
# Configure the preparer to submit to the locally running content service
41+
export CONTENT_STORE_URL=http://$(boot2docker ip):9000/
42+
export CONTENT_ID_BASE=https://github.com/deconst/deconst-docs/
43+
```
44+
45+
Then build and publish content and assets with:
46+
47+
```bash
48+
deconst-prepare-rst
49+
```

docker-compose.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
content:
3+
image: quay.io/deconst/content-service
4+
environment:
5+
RACKSPACE_USERNAME:
6+
RACKSPACE_APIKEY:
7+
RACKSPACE_REGION: DFW
8+
CONTENT_CONTAINER: deconst-presenter-dev-content
9+
ASSET_CONTAINER: deconst-presenter-dev-assets
10+
CONTENT_LOG_LEVEL: DEBUG
11+
ports:
12+
- "9000:8080"
13+
mapping:
14+
image: quay.io/deconst/mapping-service
15+
environment:
16+
CONTROL_REPO_URL: https://github.com/deconst/map-example.git
17+
MAP_LOG_LEVEL: DEBUG
18+
ports:
19+
- "9001:8080"
20+
presenter:
21+
image: quay.io/deconst/presenter
22+
links:
23+
- content
24+
- mapping
25+
environment:
26+
CONTENT_SERVICE_URL: http://content:8080/
27+
MAPPING_SERVICE_URL: http://mapping:8080/
28+
PRESENTED_URL_DOMAIN: mysite.com
29+
PRESENTER_LOG_LEVEL: DEBUG
30+
ports:
31+
- "80:8080"

0 commit comments

Comments
 (0)