Requirements : docker
, docker-compose
.
Build site and start a webserver + gulp watch:
git clone https://github.com/comptoirsecu/csec-hugo.git
cd csec-hugo
docker-compose up csec-dependencies csec-hugo
Check docker-compose.yml
and docker/ folder for more information.
Two containers get launched:
- hugo server
- yarn + gulp watch
No need to install anything else on your computer, containers are self sufficient.
If you need to use the hugo binary:
docker-compose run --rm csec-hugo <command>
# Example:
docker-compose run --rm csec-hugo hugo help
docker-compose run --rm csec-hugo hugo new sechebdo/2018-06-12-sechebdo-12-juin-2018.md
If you need to use anything else (gulp, yarn...):
docker-compose run --rm csec-dependencies <command>
# Example:
docker-compose run --rm csec-dependencies yarn update
docker-compose
will mount current folder in containers at runtime.