I finally found out how I can delete images from my self hosted remote docker registry. Here is how: Prerequisites Make sure, that the docker registry supports deletion of images: As you can see this registry allows deletion of images. HTTP API calls For the next step one needs the URL of the registry. In… Continue reading Delete Docker image from registry
Author: Andreas Gottardi
Use a build agent for multiple systems
Assume you have a build agent that has a specific tool set installed. Let’s say certain compilers, build tools and configurations. Parts of the team work with Provider A (let’s say GitHub), others with Provider B (let’s say GitLab) and a third part works with the internal Git repositories and a locally installed Jenkins instance.… Continue reading Use a build agent for multiple systems
Prevent explorer from automatically restarting
For certain actions it is required that the Windows Explorer is stopped in order to avoid open file handles or other actions that can be done while the Explorer is running. Windows is configured to restart the Explorer automatically when its process is terminated. I wrote a small PowerShell script that checks the current setting,… Continue reading Prevent explorer from automatically restarting
Automated Eclipse downloader
I work with Eclipse a lot and to download a new version, which comes out 4 times a year, I use the following script. It can be executed with PowerShell and does not require Java to be installed on the system because it downloads the OpenJDK version itself. Eclipse can then be found in the… Continue reading Automated Eclipse downloader
Format a string with content in Python
I use the ssh-keyscan command to get the public keys in order to use the ssh and scp commands without warnings and errors. To generate a list of hosts I feed the IPv4 and IPv6 address and the hostname to a function to generate the command. To format these three values into the string with… Continue reading Format a string with content in Python
Automate with ssh
Scenario I have a bunch of Linux hosts to perform actions on. Updates, certificates, cleanup, you name it. I do all my work over “ssh” but for that to work the hosts must be trusted. Of course I can use “ssh-keyscan” to get the keys but my own “known_hosts” file gets pretty messed up when… Continue reading Automate with ssh
Get installed packages
Assuming one needs to setup a LAMP server identically to a existing machine and it is important that all the specific packages are installed in order to guarantee a stable execution of the application. the following command prints out a single line list of installed packages for the provided search terms: Just change “apache|mysql|php” (RegEx!)… Continue reading Get installed packages
Build your application outside your IDE
This is a short introduction into building applications like Visual Studio solutions, Gradle/Ant/Maven- or Makefile projects. What does building mean in general? Transfering your project from one state to another. This means for example one takes the source files and derives binaries from them or creating a pdf documentation from the contained markdown files. Thus… Continue reading Build your application outside your IDE
Get latest version from GitHub API
I am writing automated updaters for certain applications but I don’t want the update to be executed every day. Instead it should only run in case a new version is available. One key component to achieve this is to find out what the latest version is. If a software distributor is using GitHub and if… Continue reading Get latest version from GitHub API
Keeping credentials out of your project
Imaging you are working on a project that has database access, API access secured with tokens or uses other credentials that should not be stored in a version control system like git because it would allow everyone with access to get the credentials and access the systems. I’d like to show in a small example… Continue reading Keeping credentials out of your project