Below you will find pages that utilize the taxonomy term “DevOps”
August 5, 2025
Devops Automation Example
Here are production-tested, real-world DevOps automation examples in Python and Bash from reputable DevOps resources.
Python DevOps Automation Scripts
1. System Resource Monitoring
Monitor CPU and memory usage, sending alerts if thresholds are exceeded:
import psutil
def check_system_resources():
cpu_usage = psutil.cpu_percent(interval=1)
memory_usage = psutil.virtual_memory().percent
if cpu_usage > 80:
print(f"High CPU usage: {cpu_usage}%")
if memory_usage > 80:
print(f"High Memory usage: {memory_usage}%")
check_system_resources()
This type of monitoring is fundamental for production reliability.[1][2]
2. AWS Automation (List S3 Buckets)
Automate AWS tasks like listing all S3 buckets with boto3:
April 9, 2017
How to install docker. Two ways.
Long time ago we had simple instalation procedure for docker. It can be installed by root or by unpriveleged user. There was some differences.
For now, installing Docker is even simplier than couple years ago. There are 2 main ways:
-
- Setup a repository for easy update in future (recomended)
-
- By hand for difficult update in future
Recomended way
Update index of package database:
sudo apt update
Install required packages:
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
Add Docker’s official GPG key: