Tag: Docker

  • LLM coding question comparison using Ollama

    Now Ollama has made it simple enough for anyone who can use a terminal to run large language models locally, naturally I’ve gone overboard downloading too many to play with. I’m increasingly feeling they definitely have a place in the devops/coding arsenal of tools, but which model is best? If you go on HuggingFace to…

  • dockerfile – CMD vs ENTRYPOINT

    There are two entries we often have at the end of a dockerfile (which is the file that tells Docker how an image is to be built). They are similar in that when the container is launched from an image, these commands will be executed. For example, both of the dockerfiles below will print “Hello…

  • User environment variables are not available in cron

    I’m used to using the docker-compose.yaml or dockerfile to set environment variables for containers running my apps, but ran into an issue recently where the variable seemed to be set some of the time, but at others it didn’t appear to exist. I had a script set to run by cron inside the container, and…

  • Outputting to the console, in Docker, from a cron job

    If you’re googling this exact title, you’re probably bumping your head against the same things I was today. I was debugging a completely different project, and needed to print to the console, from a cron job, in a Docker container. Turns out this isn’t as straightforward as I thought. Foreground cron Before you even get…

  • Upgrading to Forgejo 7.0.1

    It’s not that long ago that I wrote about doing routine upgrades on containerised web apps using Forgejo as an example as I upgraded Forgejo (my git repository manager) between patch versions of 1.21, then a few days later, they dropped 7.0.0 They say the major version jump is due to it being an LTS…

  • Peek inside a Docker image

    A ‘dockerfile’ contains all the instructions to build a Docker image. Here’s my first draft for a project I’m working on: COPY . . is copying all of the files in my project into the working directory of the image so they can be run. Of course we don’t need them all for the app…

  • Virtual Hosts on “Static Web Server”

    I’ve been running NGINX Proxy Manager (NPM) in my homelab for a bit, and I’ve been meaning to clean up the VPS that runs most of my websites and public facing servers, so I’m considering running NGINX Proxy Manager on that VPS. While NGINX Proxy Manager wraps up the configs in a beautiful GUI, in…

  • Due Diligence on a Docker Image

    I need a survey tool, and a quick search turned up LimeSurvey, there’s a ‘community edition’ so naturally I plan to self-host it. I scrolled down to the ‘installation’ section of the manual which has a big list of PHP dependencies. Ain’t nobody got the time for that in 2024, I scroll further looking for…

  • Deploying a Node app in Docker

    When I wrote the install instructions for mdserver (little Markdown server Node app) on it’s github page it was something like: Which is great if you know how to do those things (they are bread and butter to a web dev) but not if you’re a self-hoster who just wants a web server that converts…

  • Hosting Your Own Docker Registry

    The Docker Personal (ie free tier) plan currently allows one private repository, but even if you want to pay for the next level where you can have unlimited repositories, you may still want to host your own private registry – it’s going to be quicker inside your network, and you won’t run up against Docker’s…