diff --git a/hugo-arm/Dockerfile b/hugo-arm/Dockerfile new file mode 100644 index 0000000..fb6f610 --- /dev/null +++ b/hugo-arm/Dockerfile @@ -0,0 +1,8 @@ +# +# Dockerfile for hugo-arm +# + +FROM scratch +COPY hugo / +WORKDIR /www +ENTRYPOINT ["/hugo"] diff --git a/hugo-arm/README.md b/hugo-arm/README.md new file mode 100644 index 0000000..45f1c69 --- /dev/null +++ b/hugo-arm/README.md @@ -0,0 +1,52 @@ +hugo-arm +======== + +![](https://badge.imagelayers.io/vimagick/hugo-arm:latest.svg) + +[hugo][1] makes the web fun again. + +## Directory Tree + +``` +~/fig/hugo/ +|-- docker-compose.yml +`-- www/ + `-- themes/ + `-- hyde/ +``` + +## docker-compose.yml + +``` +hugo: + image: vimagick/hugo-arm + command: > + server --bind=0.0.0.0 + --port=80 + --baseUrl=http://blog.datageek.info/ + --theme=hyde + --watch + ports: + - "80:80" + volumes: + - ./www:/www + restart: always +``` + +## 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 +``` + +Open in your browser! + +[1]: http://gohugo.io/ diff --git a/hugo-arm/docker-compose.yml b/hugo-arm/docker-compose.yml new file mode 100644 index 0000000..eabcae6 --- /dev/null +++ b/hugo-arm/docker-compose.yml @@ -0,0 +1,12 @@ +hugo: + image: vimagick/hugo-arm + command: > + server --bind=0.0.0.0 + --port=80 + --baseUrl=http://192.168.1.230/ + --watch + ports: + - "80:80" + volumes: + - ./www:/www + restart: always diff --git a/hugo-arm/hugo b/hugo-arm/hugo new file mode 100755 index 0000000..65aeae0 Binary files /dev/null and b/hugo-arm/hugo differ