Azure DevOps agent pool and pipeline issues

Azure DevOps agent pool and pipeline issues

From time to time I observe random errors on automated pipeline run. In mosts cases is the issue caused by not specifying which agent pool or which requirements pipeline has. Error

Solution Add to pipeline

Traceroute alternative

Traceroute alternative

From time to time I work with machines with no traceroute installed and I need to debug networking. For those purposes, you can either install it using sudo apt-get install traceroute or use some alternatives.

Both should be available on Ubuntu 20.04 by default, but I am not sure if you can find them on older version or other distros. I will update this post with other linux distros and versions if I discover new tools or facts.

Terraform or Terragrunt modules from another repository in Azure DevOps

Terraform or Terragrunt modules from another repository in Azure DevOps

Azure DevOps (AZDO) is pretty tool, but sometimes it can be a huge pain in the ass. One painful topic is git operations. I use Terraform and Terragrunt very often to manage multiple environments so using modules is a must. To achieve stability, I am maintaining modules in separate repository with git tags. Loading external modules is same for Terraform and for Terragrunt, it uses same syntax and same commands under the hood. I am executing Terraform/Terragrunt within CICD pipelines,…

Read More Read More

Executing into k8s pod (kubernetes)

Executing into k8s pod (kubernetes)

Today I am going to save here this command. It’s very simple although I cannot remember it!

15/10/2021 – UDPATE Because I was lazy to remember it, I wrote bash function which does most of the job instead of me. It takes one argument which is pod name and I stored in my .bashrc so it’s available everythere together with my bash.

Links: https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/

Bash – substitute substring in a string

Bash – substitute substring in a string

Today I came across interesting issue – how to remove part of the string containing slash. Full string:

The desired goal is to extract releases/10 from the string. Code:

And here we go:

Git push failed inside pipeline [Azure DevOps]

Git push failed inside pipeline [Azure DevOps]

Last day I was struggling with the git error inside the pipeline. The pipeline code was simple, it should change branch into the existing one, add one file there and push it into git

However, this error occurred every time

I tried many multiple things, changing git switch to git branch, tried to use git rebase – no success! But then I tried to modify pull to pure git pull – and it worked!!! Working code:

Why I hate MacBook and macOS

Why I hate MacBook and macOS

I use MacBook for a few months I have to respond to questions “Why do you like MacBook” quite often. But to be honest, there are some things I really hate! Note: I am using Macbook Air 2019, 13″, i5 1.6 GHz, 16 GB RAM and 128 GB SSD 1. Everybody claims how perfect it is But it is not. I have plenty of GUI/system/HW bugs caught on video and this can happen. But “the community” is always saying how…

Read More Read More

Why I like MacBook and macOS

Why I like MacBook and macOS

DISCALIMER: This post will be updated during time I use MacBook for a few months I have to respond to questions “Why do you hate MacBook” quite often. But to be honest, there are some things I really like! Note: I am using Macbook Air 2019, 13″, i5 1.6 GHz, 16 GB RAM and 128 GB SSD 1. Terminal I am working as a developer/DevOps so I have wide experience with Linux (8+ year) so I was missing Terminal on…

Read More Read More

Using Gmail with Custom Domain at No Cost

Using Gmail with Custom Domain at No Cost

I like Gmail, but sometimes I have to use the email under the different domain and I do not want to integrate my domain with google ecosystem (G-Suite). I tried to use SMTP + POP3 integration but after some DDoS attacks to smaller mail servers some of Google IPs were blacklisted and I was unable to use this integration more. So I found another way how to fix this. -1. Create Gmail of you do not have one I assume…

Read More Read More

Python dependencies on project level

Python dependencies on project level

Since I started work with Python, I struggled with dependencies on a project level. I was aware of requirements.txt file, but handling it became very difficult for multiple projects. Fortunately I found very handy tool called pipreqs which generages a project level requirements.txt file using one command. Installation

Usage Just go into your project directory and run

and install inside target environment

Sometimes it does on work on 100 %, but it can save a lot of…

Read More Read More