The website lists available modules from the index and gives you easy commands to copy.
- Create your own branch / fork based on master branch.
- Make changes locally and preview with docker / hugo.
- Submit a PR to
cfengine:master
- once reviewed and merged see results here: https://staging.build.cfengine.com/ - Create a new PR from
cfengine:master
tocfengine:production
here: https://github.com/cfengine/build-website/compare/production...master - Merge to deploy (after seeing it working on staging site).
export GITHUB_USERNAME_TOKEN='place githubName:token here'
npm ci
npm run build
npm run create-modules-json
hugo
cd public
python3 -m http.server
or
hugo serve
Using docker / podman to build and serve is fairly straight forward:
export GITHUB_USERNAME_TOKEN='place githubName:token here'
docker build --build-arg GITHUB_USERNAME_TOKEN --tag cfengine-build-website -f Dockerfile . && docker run -it -p 80:80 -p 81:81 --volume ./proxy:/home/proxy --name cfengine-build-website --rm cfengine-build-website
- build-index - Index of modules
- build-website - Website
- cfbs - Command line client
- modules - Official modules provided by the CFEngine team
- module-template - Template for creating new modules