Tag: linux
docker: monitor the execution of N containers
I had to monitor the execution of N containers that were collecting data from multiple accounts at IBM Cloud. Here, each container is simulation the process to collect the data, one container per account:
tekton: no endpoints available for service “tekton-pipelines-webhook
If you see an error like the above one during your Tekton deployment, you can use the steps provided here to fix it. Issue: Solution:
CICD: building multi-arch container images with GitHub Actions
The world is multi-arch and you can easily leverage it!
PostgreSQL: iterate over all tables and calculate the avg for a given column
ppc64le: installing openstack CLI on RHEL 8.x
docker: delete containers running for a long time
If you need to delete running containers based on their lifetime, this handy combination of commands can help you. It deletes all containers running for more than 2 hours. HOUR=2docker ps –filter “status=running” | grep hours | awk ‘{if ($4 >=$HOUR) print $1,”must be deleted”; system(“docker rm -f ” $1)}’
ppc64le: building a custom version of grub2
If you need to test a custom version of grub2 you can follow the steps bellow to build the necessary packages for RHEL8 (it should also work on CentOS and Fedora):
ppc64le: building GitLab Runner
To build GitLab Runner for ppc64le you can run the following steps in a x86_64 machine with Ubuntu 20.04:
ppc64le: creating a new CentOS8 .ova image for PowerVS
creating a new CentOS8 .ova image for PowerVS without a PowerVC 🙂