Vagrant – Custom Image/Box (Base Image)
Just like Docker or Kubernetes, Vagrant also uses initial “images” to create VMs, but in the case of Vagrant, called Box. Creating base images, with certain customized configurations, is a…
Just like Docker or Kubernetes, Vagrant also uses initial “images” to create VMs, but in the case of Vagrant, called Box. Creating base images, with certain customized configurations, is a…
GitHub: https://github.com/faustobranco/devops-db/tree/master/knowledge-base/ansible/secrets In this post, I want to show how to use Ansible Vault to encrypt sensitive content in playbooks. For example, username, password, some key, IP, etc. Of course,…
In this post, I will show another way to call scripts or shell commands via Groovy. This time using Java’s ProcessBuilder, using the InputStreamReader to collect returns, but using the…
In this post, in addition to the previous one, I want to show how to copy a file into a Docker Container in Groovy / Java, this will be very…
Hello! In this post I will show, in a piece of code, how to execute commands in Docker containers in Groovy or Java. As a dependency, the GitHub library com.github.dockerjava…
In this post, I want to show, in a similar way to the previous one, how to generate logs in pipelines, but this time from a Python script. https://devops-db.com/jenkins-class-for-logs-in-pipelines/ To…
In this post, I will show another change to our Shared Library, as expected, this library must be incremental. At this point, I created another classpath with some classes to…
In this Knowledge Base post, I will leave 2 pieces of very simple and extremely similar code, how to read and write Yamls or Jsons, either by loading files or…
Hello, another post of code snippets, in this one, I want to leave basically 2 methods that I use whenever I need to do some operation with IPs or a…
Here in this post, I want to leave one more piece of code, which will be useful later on, like a groovy script, you can make a python script call…