I'm currently running GitLab in a Docker container and wanted a little Bash script to let me know when the container is healthy (e.g. ready) after reboot. The script uses an until command to ask Docker to list the containers, looking for the word 'Healthy' and until the word is found it outputs that it … Continue reading Do Until (BASH)
Category: Linux
Running Flask As A Linux Service (Linux / Python)
Continuing on with the Software Engineering & Agile module of my degree, I need to be able to show my Flask web application running. After picking a cloud platform (in this case Azure) I git cloned my repository to the Linux Ubuntu instance that will be running it and realised that I've not included a … Continue reading Running Flask As A Linux Service (Linux / Python)
Installing MediaWiki with Ansible (Linux)
MediaWiki was developed originally for Wikipedia and has grown to support lots of sites. With this in mind you may consider installing MediaWiki and running a local wiki, especially as MediaWiki provides instructions on specific operating system installs. In an effort to speed up installs I've created an Ansible playbook to carry out the MediaWiki … Continue reading Installing MediaWiki with Ansible (Linux)
SOCKS Proxy (Linux)
When working remotely (i.e. away from home) I often think about how it would be great if I could open up some of my internal projects when I have spare time and carry on working on them. There are multiple options on how I could do this, some are costly (moving environment to cloud) and … Continue reading SOCKS Proxy (Linux)
Ansible – SSH and Password Protected Private Keys (Linux)
It is recommended to password protect private SSH keys, so if they do ever end up in the wrong hands then a password is still needed to access them. If you wanted to go really secure Ansible Vault could be used to encrypt the private key alongside the password. This would require the key to … Continue reading Ansible – SSH and Password Protected Private Keys (Linux)
Geckodriver – Missing From Environment Path
Less a blog post and more a note to myself. After installing Geckodriver make sure to add it to the environment. The error message (or similar): "selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH". Means its not been added to the environment. To add to the environment use the command: export PATH=$PATH:/path/to/geckodriver
Kubernetes Cluster On Raspberry Pi
Can a Kubernetes cluster be built using Raspberry Pis? Yes, it can. The Raspberry Pi is a fantastic computer and I've used it in a variety of projects to assist with me learning more. Over the summer (2020) I used an Ansible playbook created by Jeff Geerling to briefly create a small Pi Kubernetes cluster, … Continue reading Kubernetes Cluster On Raspberry Pi
Raspberry Pi DHCP Server (Linux / Raspberry Pi)
Previously I have connected my Raspberry Pi devices to my home wi-fi and that raised the question, could I have my own home dev network which would keep my Pi devices away from my home network? I disconnected the Raspberry Pi boards from their various locations in the house, grabbed a desktop switch, some ethernet … Continue reading Raspberry Pi DHCP Server (Linux / Raspberry Pi)
The DRY principle: Ansible and variables
One of the frequent teachings I have learned whilst learning programming languages is that repeated blocks of code should be, where possible, placed into a function so that the function can be called multiple times instead of writing out the code multiple times. This approach as the benefits of: Producing repeatable resultsReducing the chances of … Continue reading The DRY principle: Ansible and variables
Terraform – States, Locks & Team Work
Terraform can create, modify and destroy infrastructure, and with my last blog post I've seen that it can run Ansible to configure the infrastructure that it creates. So far, so good but what if multiple people work on the same project with each trying to adjust code at the same time? Eek, probably lots of … Continue reading Terraform – States, Locks & Team Work
You must be logged in to post a comment.