mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
update
This commit is contained in:
parent
6a13502226
commit
98b12ae572
@ -35,6 +35,7 @@ dockerfiles
|
||||
- [x] grafana
|
||||
- [x] h2o
|
||||
- [x] hubot
|
||||
- [x] hugo-arm :+1:
|
||||
- [x] hydra
|
||||
- [x] influxdb
|
||||
- [x] iptables
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user