When installing Ansible on OSX I ran into the problem of it not using an (existing) python v3.8 but rather the system python (v2.7). This is often a problem as python is used by the system and must not be touched unless one wants to have problems with their Mac. So I needed to tell… Continue Reading make ansible use python3 on osx
docker and zombie processes – pid 1 in containers
I realize that the issue I’ll write about is most likely common and known to you. I have only come by this issue today and this post is for me to remember the most valuable lessons I learned. The problem I ran an Icinga2 in Docker containers. It was a hassle to say the least.… Continue Reading docker and zombie processes – pid 1 in containers
directly connect to php-fpm from commandline (using cgi-fcgi)
This shall simply be a repost as I must never forget this. It has helped me a lot in debugging Webserver<->PHP interaction:
debug php inside a docker container with vscode (on mac os)
To debug php code inside a Docker container using VSCode as your IDE, proceed as follows: Install php and the relevant extensions using your Dockerfile like so: Add the following xdebug config and copy it over to your image like so: Please note specifically: The client_host “host.docker.internal” is a Docker for Mac specific thing. It… Continue Reading debug php inside a docker container with vscode (on mac os)
docker login: incorrect username or password
When you run “docker login <myReg>” and Docker screams This might actually not be the problem. Thank you very much Docker, for this useless piece of error. While it might be possible that you’re just too stupid to type your username/password 500 times in a row (although not very likely), the error might be fixable… Continue Reading docker login: incorrect username or password
traefik gateway timeout
This is a networking problem. The traefik container cannot reach the destination container. This is most likely the problem of the default or specific network defined for traefik and the destination container. Assume this compose file: So you’d think your traefik default network configuration would look like this: But you have to remember that Docker… Continue Reading traefik gateway timeout
debugging jenkinsfiles
As a DevOps I spend a lot of time in Jenkins, automating stuff. Often pipelines will misbehave and I need ways of debugging things: Println Obviously the easiest way of getting information out of the running pipeline. Simulating a “breakpoint” Adding a somewhere in the pipeline pauses execution at that point which lets me check… Continue Reading debugging jenkinsfiles
check how much swap is used per process
This is simply a re-post of How to find out which processes are using swap space in Linux? which in return is based on northernmost.org’s Swap Usage – 5 Years Later Use like this:
find (and delete) files recursively on linux using find
Just as a reminder to myself, I will repost this post on baeldung: Recursively Deleting Files With a Specific Extension Get an idea of what you’ll be deleting: Reminder: Do backups and check that you’re in the correct location before starting the execution.
docker swarm: find all services using a certain secret
If you find yourself in a situation like us, wanting to know how many and which services in a docker swarm are using a specific secret, this might help you: