mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-01 13:17:51 +02:00
add hugo-arm
This commit is contained in:
parent
70ad875af2
commit
6a13502226
8
hugo-arm/Dockerfile
Normal file
8
hugo-arm/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for hugo-arm
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY hugo /
|
||||||
|
WORKDIR /www
|
||||||
|
ENTRYPOINT ["/hugo"]
|
52
hugo-arm/README.md
Normal file
52
hugo-arm/README.md
Normal file
@ -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 <http://blog.datageek.info/> in your browser!
|
||||||
|
|
||||||
|
[1]: http://gohugo.io/
|
12
hugo-arm/docker-compose.yml
Normal file
12
hugo-arm/docker-compose.yml
Normal file
@ -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
|
BIN
hugo-arm/hugo
Executable file
BIN
hugo-arm/hugo
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user