You can use docker to run images with a different architecture using qemu
emulation.
Prerequisites
There are a couple required packages for ubuntu which you can install with apt
:
sudo apt install qemu binfmt-support qemu-user-static
or follow the docker documentation Show archive.org snapshot and use a docker image to add the requirements.
Running Images
Just use the --platform
option with the architecture you want to use when starting an image:
docker run --rm --platform linux/arm64 alpine uname -a
Check registered executable types
Verify that F is among the flags in /proc/sys/fs/binfmt_misc/qemu-*
: cat /proc/sys/fs/binfmt_misc/qemu-*
Related cards:
HowTo apply Test Driven Development to Container Images
Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate the testing process. Iterate through the TDD cycle while developing and running the tests later in continuous integrat...
Parsing multiline container logs with fluent-bit
If you have for e.g. a Java application which outputs multiline stack traces inside a container running in kubernetes you might wonder how you can concat alle these lines to a single log message in fluent-bit
. If fluent-bit is receiving the log ...
Installing throttled to fix Lenovo laptops with nvidia graphics running Ubuntu losing performance after a while
We have observed Lenovo laptops with nvidia graphics losing performance after they have been in use for a few minutes. While we have not been able to pinpoint exactly what triggered the performance loss, we have found it mostly correlated with hig...
How to Protect container images with production tag from ECR lifecycle rules
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they have been pushed to the registry.
If you however want to _...
HowTo: Add custom headers to docker client requests
It is possible to add custom http header to request made by the docker CLI client. This can be used to e.g. add another authentication header for a proxy.
Implementation
c...
get debug output for puppetmaster running with passenger
If you need the debug output of the puppetmaster running with passenger you have to uncomment this setting in the config.ru
:
#ARGV << "--debug"
If you don't know where your config.ru
is, check the Apache DocumentRoot
. It's in `/pat...
Why Apple Silicon MacBooks Can Only Use One External Display Through A Dock
It's quite confusing how many external displays are usable with a MacBook that uses an M1 or M2 Chip. Documentation on the Internet is sparse and not even the Geniuses at the Genius Bar are 100% sure. We found out some things and can explain the b...
Check JVM settings of running java process
If you want to check the configuration of a running JVM process you can use jcmd
.
-
List the running processes:
$ jcmd -l 1 /app.jar 140 jdk.jcmd/sun.tools.jcmd.JCmd -l
The first column shows the
PID
of the pro...
HowTo: Curl applications that are usually behind reverse proxies with TLS termination without the application redirecting to https schema
A lot of web applications require being called over https
, which is a good thing. It's possible to configure this requirement at the web- or proxy server level, where nginx
or apache
will just redirect every request on http
to https
. Som...
Replacing exported resources with puppetdb queries
Instead of using Puppet exported resources you can use the puppetdb_query feature.
This can result...