Docker, Ollama, Ubuntu & Radeon GPU

Just a quickie: this is the command I'm using on my Acer Nitro latop to run Ollama in Docker with GPU acceleration: group_id_video=$(getent group video | cut -d: -f3) group_id_render=$(getent group render | cut -d: -f3) docker run -d \ --privileged \ --device /dev/kfd \ --device /dev/dri \ --volume ollama:/root/.ollama \ --volume "/some/path/ollama:/images" \ --group-add … Continue reading Docker, Ollama, Ubuntu & Radeon GPU

cloudflared docker health check

Cloudflare's cloudflared container doesn't come with a good health check - or so it seems [1]. The functionality is there, though. The tunnel needs to be started with metrics enabled (here: exposed to 127.0.0.1:20241) and the health check needs to call the proper check. cloudflared: image: cloudflare/cloudflared:latest ... command: tunnel --metrics 127.0.0.1:20241 run healthcheck: test: … Continue reading cloudflared docker health check

Azure diaries: InUseSubnetCannotBeDeleted

When re-deploying a Bicep template that defines a vnet with subnets, I get the error "InUseSubnetCannotBeDeleted". It seems like ARM is trying to re-create the nested subnets, even though they haven't changed. The solution is to add a redundant reference to all subnets via the "existing" keyword. resource websiteVnet 'Microsoft.Network/virtualNetworks@2021-02-01' = { name: 'vnet${sfx}001' location: … Continue reading Azure diaries: InUseSubnetCannotBeDeleted

Testing a Terraform resource deployment

I like to include smoke tests [ST] in my Terraform [TF] deployments just to make sure I didn't overlook anything obvious. One such way is to interact with a resource that invokes other resources, such as an HTTP endpoint that is routed through API gateways, application containers and databases. An easy and portable way to … Continue reading Testing a Terraform resource deployment

azapi: unsupported attribute

One of my Azure Terraform deployments recently started failing with "unsupported attribute". The deployment involves container app environments which aren't currently supported by azurerm, so I'm working around that with azapi [AZAPI]. The template references an attribute ("staticIp" for the interested reader) in the resource creation JSON output. The deployment started breaking in early January … Continue reading azapi: unsupported attribute