2023-08-11
What's this blog about
I was set to self-host a blog to put down some ideas. I looked around for suitable platforms. Preferrably something that could render the site using posts created as markdown files. First I tried Hugo which is a static site builder written in go and works with MD files. I used it for a while, but found it too complicated for my use case. I wanted something that was made of static html and css.
The current version is now just plain html and Tailwindcss served by Nginx. All content is baked into a container image run by k8s.
FROM nginx:alpine
COPY src/*.html /usr/share/nginx/html/
COPY dist/* /usr/share/nginx/html/dist/
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Deployment
The container image gets built automatically by Github workflow when changes are pushed to main. Image is stored to private registry in docker hub and the k8s manifest updated & re-applied. The site utilizes the infra and automation that runs all dbzio applications.