mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
update
This commit is contained in:
parent
6a13502226
commit
98b12ae572
@ -35,6 +35,7 @@ dockerfiles
|
|||||||
- [x] grafana
|
- [x] grafana
|
||||||
- [x] h2o
|
- [x] h2o
|
||||||
- [x] hubot
|
- [x] hubot
|
||||||
|
- [x] hugo-arm :+1:
|
||||||
- [x] hydra
|
- [x] hydra
|
||||||
- [x] influxdb
|
- [x] influxdb
|
||||||
- [x] iptables
|
- [x] iptables
|
||||||
|
@ -33,20 +33,31 @@ hugo:
|
|||||||
restart: always
|
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
|
## Up and Running
|
||||||
|
|
||||||
```
|
```
|
||||||
$ alias hugo='docker run --rm -v `pwd`:/www vimagick/hugo-arm'
|
$ alias hugo='docker run --rm -v `pwd`:/www vimagick/hugo-arm'
|
||||||
$ cd ~/fig/hugo/www
|
$ cd ~/fig/hugo/www
|
||||||
$ curl -L https://github.com/spf13/hyde/archive/master.tar.gz | tar xz --strip 1 -C ./themes/hyde/
|
$ curl -L https://github.com/spf13/hyde/archive/master.tar.gz | tar xz --strip 1 -C ./themes/hyde/
|
||||||
|
|
||||||
$ hugo new site .
|
$ hugo new site .
|
||||||
$ vim config.toml
|
$ vim config.toml
|
||||||
|
|
||||||
$ hugo new post/hello-world.md
|
$ hugo new post/hello-world.md
|
||||||
$ vim content/post/hello-world.md
|
$ vim content/post/hello-world.md
|
||||||
$ cd ~/fig/hugo/
|
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
|
$ hugo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> The last `hugo` command will use `baseurl` in `config.toml`.
|
||||||
|
|
||||||
Open <http://blog.datageek.info/> in your browser!
|
Open <http://blog.datageek.info/> in your browser!
|
||||||
|
|
||||||
[1]: http://gohugo.io/
|
[1]: http://gohugo.io/
|
||||||
|
Loading…
Reference in New Issue
Block a user