Logging With Docker, Promtail and Grafana Loki

In this post we will use Grafana Promtail to collect all our logs and ship it to Grafana Loki. About We will be using Docker Compose and mount the docker socket to Grafana Promtail so that it is aware of all the docker events and configure it that only containers with docker labels logging=promtail needs to be enabled for logging, which will then scrape those logs and send it to Grafana Loki where we will visualize it in Grafana....

November 18, 2022 路 3 min 路 Ruan Bekker

How to create ARM based images using Buildx

This is a short post on how to create container images with docker and buildx so that it鈥檚 compatible with ARM architectures such as the Apple M1 and Raspberry Pi 64 bit. Dockerfile We will have a simple dockerfile that runs from a alpine image and we will be installing curl: FROM alpine:latest LABEL maintainer "Ruan Bekker" RUN apk --no-cache add curl Buildx List your current builder instances: $ docker buildx ls NAME/NODE DRIVER/ENDPOINT STATUS PLATFORMS default docker default running linux/amd64, linux/386 As you can see we only have amd64 and i386 architecture support for when we build container images....

October 13, 2022 路 2 min 路 Ruan Bekker

Setup Linkding Bookmarks Manager

I鈥檝e stumbled upon a great bookmarks manager service called Linkding. What I really like about it, it allows you to save your bookmarks, assign tags to it to search for it later, it has chrome and firefox browser extensions, and comes with an API. Installing Linkding We will be using Traefik to do SSL termination and host based routing, if you don鈥檛 have Traefik running already, you can follow this post to get that set up:...

May 31, 2022 路 3 min 路 Ruan Bekker

Setup Gitea with Woodpecker CI

In this tutorial we will setup Gitea as our version control system, and we will setup Woodpecker Ci (Server and Agent) to run our builds from a simple pipeline that we define in yaml, and the best is that our builds runs on containers. We will run these on docker and make use of docker-compose. What is Woodpecker Taken from their documentation: 鈥淲oodpecker is a simple CI engine with great extensibility....

April 13, 2022 路 5 min 路 Ruan Bekker

Docker Monitoring Stack with Grafana

In this tutorial we will dive a bit deeper into the docker-monitoring-stack-gpnc repository, on how to setup a docker monitoring stack that runs grafana, prometheus, node-exporter, cadvisor and alertmanager, which includes node and container level metric dashboards. About The repo has been built to get a monitoring stack up and running within seconds and the components includes: Grafana: For visualising graphs Prometheus: Timeseries Database for Metrics cAdvisor: Exposes Container Metrics Node-Exporter: Exposes Node Metrics Alertmanager: Manages Alerts Setup First clone the repository:...

April 7, 2022 路 2 min 路 Ruan Bekker