web-ci/README.md

39 lines
1 KiB
Markdown
Raw Normal View History

2024-06-04 17:11:03 -04:00
# Hugo Extended CI Container
2024-06-08 05:45:07 -04:00
Based on alpine:3.20
2024-06-04 21:44:15 -04:00
Contains nodejs, hugo, npm, rsync
2024-06-04 21:44:15 -04:00
## To use
2024-06-04 17:11:03 -04:00
Run the following in your hugo directory:
```
2024-06-08 05:44:25 -04:00
docker run -v .:/home/app -ti --network=host git.myco.systems/mycosystems/hugo-ci:latest
2024-06-04 17:11:03 -04:00
```
To also host locally:
```
2024-06-08 05:44:25 -04:00
docker run -p 1313:1313 -v .:/home/app -ti --network=host git.myco.systems/mycosystems/hugo-ci:latest
2024-06-04 17:11:03 -04:00
```
2023-07-25 13:49:22 +02:00
2024-07-18 08:43:39 -04:00
## Building
Building requires docker, buildx. Nodejs is included in the ci workflow becuase of it's use in many actions scripts.
2024-07-18 08:44:58 -04:00
I recommend changing the option `JOBS` in the Dockerfile as the current number is optimized for a custom KVM machine that's being used as our runner.
2024-07-18 08:43:39 -04:00
Our runner is given these resources:
- 64 GB DDR4
- 128 vcores passed as EPYC 7763 (host) using NUMA
- 64 GB emulated SSD
2024-06-04 21:44:15 -04:00
## Links
2023-07-25 13:49:22 +02:00
- ~~[BetterWeb Docker](https://hub.docker.com/r/betterweb/hugo)~~
- ~~[BeterCorp Github](https://github.com/BetterCorp/hugo)~~
2024-07-17 14:33:04 +00:00
- [Codeberg Repo](https://codeberg.org/mycosys/hugo-ci)
- [Codeberg Packages](https://codeberg.org/mycosys/-/packages/container/hugo-ci/versions)