Python Virtual Environment

A very quick overview of how you can use Python virtual environments. https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/ Install the Virtual Environment First install the virtual environment. Create the Virtual Environment Let’s say I have a project called “python-static-site”, so we’ll create the virtual environment within this project directory along with all the source files. The second argument is the […]

More...

Using Gitlab CI/CD to Manage Configuration (e.g. Apache2) – Part 2

Assuming you’ve read and followed part 1, now on part 2 we’ll get our SSH keys created, and the gitlab-runner registered with gitlab as a “runner” so we can create our pipeline. Configuring the SSH Keys for Gitlab-Runner To make the local gitlab-runner on your machine have the correct keys, you need to generate them […]

More...

Using Gitlab CI/CD to Manage Configuration (e.g. Apache2) – Part 1

Infrastructure as Code (IaC) is a useful way to maintain the configuration of your infrastructure components. It provides a way that you can store your infrastructure or application’s configuration in a versioned location and then coupled with CI/CD brings you the benefits of being able to enforce gatekeeping on any changes to the configuration, automate […]

More...