Update www docs with a separate page for container images
This commit is contained in:
parent
68cb0cdb50
commit
98bdedbee8
2 changed files with 25 additions and 19 deletions
24
content/docs/adyxax.org/www/containers.md
Normal file
24
content/docs/adyxax.org/www/containers.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
title: Container images
|
||||||
|
description: How container images are built, where they are stored and how they are deployed
|
||||||
|
---
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
There are two container images to serve a fully functional website:
|
||||||
|
- One for the hugo static website, running nginx and serving this site's static files
|
||||||
|
- One for the search web service written in go
|
||||||
|
|
||||||
|
These are both built with `buildah` using [the same script](https://git.adyxax.org/adyxax/ev-scripts/tree/www/build-images.sh).
|
||||||
|
|
||||||
|
Images are based on the latest alpine linux distribution available when building.
|
||||||
|
|
||||||
|
## Registry
|
||||||
|
|
||||||
|
The images are pushed to https://quay.io/.
|
||||||
|
|
||||||
|
## Continuous deployment
|
||||||
|
|
||||||
|
The build and deployment of the website is handled by `eventline` with the following jobs called from git hooks by `gitolite` when I `git push`:
|
||||||
|
- [www-build](https://git.adyxax.org/adyxax/ev-scripts/tree/www/www-build.yaml)
|
||||||
|
- [www-deploy](https://git.adyxax.org/adyxax/ev-scripts/tree/www/www-deploy.yaml)
|
|
@ -1,25 +1,13 @@
|
||||||
---
|
---
|
||||||
title: "Installation"
|
title: "Installation"
|
||||||
description: Installation notes of www on k3s
|
description: Installation notes of www on k3s
|
||||||
tags:
|
|
||||||
- hugo
|
|
||||||
- k3s
|
|
||||||
- kubernetes
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
This is a static website built using hugo.
|
This is a static website built using hugo.
|
||||||
|
|
||||||
## Container images
|
## Kubernetes manifest
|
||||||
|
|
||||||
There are two container images:
|
|
||||||
- One for the hugo static website
|
|
||||||
- One for the search web service
|
|
||||||
|
|
||||||
These are both built with `buildah` using [the same script](https://git.adyxax.org/adyxax/ev-scripts/tree/www/build-images.sh).
|
|
||||||
|
|
||||||
## Kubernetes manifests
|
|
||||||
|
|
||||||
[The whole manifest is here](https://git.adyxax.org/adyxax/www/tree/deploy/www.yaml).
|
[The whole manifest is here](https://git.adyxax.org/adyxax/www/tree/deploy/www.yaml).
|
||||||
|
|
||||||
|
@ -45,9 +33,3 @@ acme.sh --config-home "$HOME/.acme.sh" --server letsencrypt --dns dns_cf --issue
|
||||||
kubectl -n www create secret tls wildcard-adyxax-org --cert=$HOME/.acme.sh/adyxax.org/fullchain.cer \
|
kubectl -n www create secret tls wildcard-adyxax-org --cert=$HOME/.acme.sh/adyxax.org/fullchain.cer \
|
||||||
--key=$HOME/.acme.sh/adyxax.org/adyxax.org.key -o yaml --save-config --dry-run=client | kubectl apply -f -
|
--key=$HOME/.acme.sh/adyxax.org/adyxax.org.key -o yaml --save-config --dry-run=client | kubectl apply -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
## CI/CD
|
|
||||||
|
|
||||||
The build and deployment of the website is handled by `eventline` with the following git hooks called by `gitolite` when I git push:
|
|
||||||
- [www-build](https://git.adyxax.org/adyxax/ev-scripts/tree/www/www-build.yaml)
|
|
||||||
- [www-deploy](https://git.adyxax.org/adyxax/ev-scripts/tree/www/www-deploy.yaml)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue