Eric Dobbs bc8204c9d3 use build arg for wiki version & for container tag
There is a new version of wiki available.  Want to tag this version
and enable building and tagging the next version.
2017-09-04 21:45:32 -06:00

60 lines
1.1 KiB
Markdown

# 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
```
Specify the domain name when you launch your wiki
``` bash
docker run -p 3000:3000 -it --rm \
-v localtest.me:/home/app/.wiki \
-e DOMAIN=localtest.me \
dobbs/farm
```
Open http://this.localtest.me:3000 in one tab.
Open http://that.localtest.me:3000 in another.
# Development
``` bash
VERSION=0.11.4
docker build --build-arg VERSION=$VERSION -t dobbs/farm:$VERSION .
git tag $VERSION
```