2017-07-16 04:36:22 +00:00
|
|
|
# Federated Wiki Farm
|
|
|
|
|
|
|
|
http://fed.wiki.org
|
|
|
|
|
|
|
|
### Get acquainted with wiki.
|
|
|
|
|
|
|
|
Launch the container:
|
|
|
|
``` bash
|
|
|
|
docker run -p 3000:3000 -it --rm \
|
|
|
|
dobbs/farm
|
|
|
|
```
|
|
|
|
|
|
|
|
Visit http://localhost:3000
|
|
|
|
|
|
|
|
### Make your wiki survive a reboot
|
|
|
|
|
|
|
|
Create a volume:
|
|
|
|
|
|
|
|
``` bash
|
|
|
|
docker volume create dot-wiki
|
|
|
|
```
|
|
|
|
|
|
|
|
Launch the container:
|
|
|
|
``` bash
|
|
|
|
docker run -p 3000:3000 -it --rm \
|
|
|
|
-v dot-wiki:/home/app/.wiki \
|
|
|
|
dobbs/farm
|
|
|
|
```
|
|
|
|
|
|
|
|
Visit http://localhost:3000
|
|
|
|
|
|
|
|
### Make your wiki a local farm
|
|
|
|
|
|
|
|
We're going to use http://localtest.me instead of localhost for our
|
|
|
|
domain name. See http://readme.localtest.me for more info.
|
|
|
|
|
|
|
|
Let's also use a different volume for this one:
|
|
|
|
``` bash
|
|
|
|
docker volume create localtest.me
|
|
|
|
```
|
|
|
|
|
2018-02-26 04:58:43 +00:00
|
|
|
Specify the domain name and configure your wiki
|
2017-07-16 04:36:22 +00:00
|
|
|
``` bash
|
|
|
|
docker run -p 3000:3000 -it --rm \
|
|
|
|
-v localtest.me:/home/app/.wiki \
|
|
|
|
-e DOMAIN=localtest.me \
|
2018-02-26 04:58:43 +00:00
|
|
|
dobbs/farm configure-wiki
|
|
|
|
```
|
|
|
|
|
|
|
|
Now that configuration is complete, launch the wiki:
|
|
|
|
``` bash
|
|
|
|
docker run -p 3000:3000 -it --rm \
|
|
|
|
-v localtest.me:/home/app/.wiki \
|
2017-07-16 04:36:22 +00:00
|
|
|
dobbs/farm
|
|
|
|
```
|
|
|
|
|
|
|
|
Open http://this.localtest.me:3000 in one tab.
|
|
|
|
Open http://that.localtest.me:3000 in another.
|
2017-09-05 03:45:32 +00:00
|
|
|
|
|
|
|
# Development
|
|
|
|
|
2017-10-01 17:28:14 +00:00
|
|
|
This image's tag matches the version of the included wiki software.
|
|
|
|
|
2017-09-05 03:45:32 +00:00
|
|
|
``` bash
|
2018-02-26 04:58:43 +00:00
|
|
|
git tag -am "" '0.14.0'
|
2017-10-01 17:28:14 +00:00
|
|
|
git push --tags
|
2017-09-05 03:45:32 +00:00
|
|
|
```
|
2017-12-11 15:02:50 +00:00
|
|
|
|
|
|
|
The repos in Dockerhub and GitHub are configured to automatically build new tags.
|