1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
This commit is contained in:
kev 2015-10-19 00:18:11 +08:00
parent 6a13502226
commit 98b12ae572
2 changed files with 13 additions and 1 deletions

View File

@ -35,6 +35,7 @@ dockerfiles
- [x] grafana
- [x] h2o
- [x] hubot
- [x] hugo-arm :+1:
- [x] hydra
- [x] influxdb
- [x] iptables

View File

@ -33,20 +33,31 @@ hugo:
restart: always
```
> **WARNING:** `hugo server` is for testing purpose.
> The default value of `--baseUrl` option is `http://<bind>:<port>/`.
> I set it to the same value as that in `config.toml` here.
> It maybe not a good practice.
## Up and Running
```
$ alias hugo='docker run --rm -v `pwd`:/www vimagick/hugo-arm'
$ cd ~/fig/hugo/www
$ curl -L https://github.com/spf13/hyde/archive/master.tar.gz | tar xz --strip 1 -C ./themes/hyde/
$ hugo new site .
$ vim config.toml
$ hugo new post/hello-world.md
$ vim content/post/hello-world.md
$ cd ~/fig/hugo/
$ docker-compose up -d
$ hugo
```
> The last `hugo` command will use `baseurl` in `config.toml`.
Open <http://blog.datageek.info/> in your browser!
[1]: http://gohugo.io/