Skip to content

Commit

Permalink
Forgot to mention the SSL files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esmail Fadae committed Feb 12, 2016
1 parent 4e6b3e9 commit 4997ccb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ Future home of KoBo Toolbox's Docker configuration.
# Temporary setup procedure for server installations (e.g. UNHCR)
1. Configure [`envfile.txt`](./envfile.txt)
2. If faking a public server by manipulating `/etc/hosts`, configure the `extra_hosts` directives in [`docker-compose.server.yml`](./docker-compose.server.yml)
3. Clear previously persisted files: `sudo rm -rf .vols/ log/`
4. Clear previously built containers: `docker-compose -f docker-compose.server.yml rm -f`
5. As a temporary workaround to avoid a race condition, manually initiate `kpi` database sync and migrations (quit with `CTRL+C` once UWSGI has started): `docker-compose -f docker-compose.server.yml run --rm kpi`
6. As a temporary workaround to avoid a race condition, manually initiate `dkobo` (yes, really) database sync and migrations, and initialize an admin user with credentials `kobo:kobo` (quit with `CTRL+C` once UWSGI has started): `docker-compose -f docker-compose.server.yml run --rm dkobo`
7. As a temporary workaround to avoid a race condition, manually initiate `kobocat` database sync and migrations (quit with `CTRL+C` once UWSGI has started): `docker-compose -f docker-compose.server.yml run --rm kobocat`
8. Start the server: `docker-compose -f docker-compose.server.yml up` (or with `up -d` to run in background)
3. Make a `secrets` directory in the project root and copy the SSL certificate and key files to `secrets/ssl.crt` and `secrets/ssl.key` respectively.
4. Optionally clear previously persisted files: `sudo rm -rf .vols/ log/`
5. Optionally clear previously built containers: `docker-compose -f docker-compose.server.yml rm -f`
6. As a temporary workaround to avoid a race condition, manually initiate `kpi` database sync and migrations (quit with `CTRL+C` once UWSGI has started): `docker-compose -f docker-compose.server.yml run --rm kpi`
7. As a temporary workaround to avoid a race condition, manually initiate `dkobo` (yes, really) database sync and migrations, and initialize an admin user with credentials `kobo:kobo` (quit with `CTRL+C` once UWSGI has started): `docker-compose -f docker-compose.server.yml run --rm dkobo`
8. As a temporary workaround to avoid a race condition, manually initiate `kobocat` database sync and migrations (quit with `CTRL+C` once UWSGI has started): `docker-compose -f docker-compose.server.yml run --rm kobocat`
9. Start the server: `docker-compose -f docker-compose.server.yml up` (or with `up -d` to run in background)

# TODO
* Enketo Express authentication issue.
Expand Down

0 comments on commit 4997ccb

Please sign in to comment.