For some things, a docker container will not work. For example, I am working on a Python project to automate the deployment and configuration of VMs and bare-metal boxes. It involves installing packages and configuring the OS and to properly test it requires a full fledged VM and not just a container.
Use packer to define the box you want to build
Install packer. The description straight from
apt show packer is “HashiCorp Packer – A tool for creating identical → Continue reading “Creating Custom Vagrant Boxes for Integration Testing”
An easy way to parameterize a Vagrant file is to use environment variables. You simply need to export a variable and then refer to it in the Vagrant file with the following syntax.
Export the variable:
Sample Vagrant file that reads the exported variable
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.box_version = "11.20221219.1"
config.vm.network "forwarded_port", guest: 22, host: ENV['SSH_PORT']
→ Continue reading “Using Environment Variables in a Vagrant File”
If you want to dynamically define and export variable names in Bash here is the TLDR;
# Define the name of the variable
# Declare it and export it
declare -gx "$key"="some-value"
To then access that value via a dynamically generated variable name
# Create a variable that contains the variable name
# Read the value
Read the man page for
declare for more details and read this article for a really good explanation and further examples.→ Continue reading “Declaring, Exporting, and Reading Dynamic Variables in Bash”
Make 3 cups of cooked barley ahead of time and have it on hand when cooking the soup.
- 2 Tablespoons olive oil
- 3 cloves garlic, minced
- 2 leeks, diced
- 3 carrots, diced
- 1 bulb fennel, sliced thin (1 cup)
- 1 (15 ounce) can no-salt added diced tomatoes
- 1 teaspoon Herbes de Provence
- 4 cups low-sodium vegetable broth
- 2 (15 ounce) cans white beans,rinsed and drained
- 1/2 teaspoon kosher salt
- 1/4 teaspoon black pepper
- 1 teaspoon lemon zest
- 4 ounces
→ Continue reading “Bean and Barley Leek Soup”