psutil
Docker Compose
Our great sponsors
psutil | Docker Compose | |
---|---|---|
7 | 383 | |
9,905 | 32,312 | |
- | 1.2% | |
8.9 | 9.6 | |
2 days ago | 1 day ago | |
Python | Go | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
psutil
-
Single Window Mode when Firefox is already launched with -profile "my_profile" parameter
fyi: python + https://github.com/giampaolo/psutil is pretty portable
-
Why new Macs break your Docker build, and how to fix it
FYI, you probably already know this, but just in case: https://github.com/giampaolo/psutil/pull/2070
-
Steam like timer
Check out https://github.com/giampaolo/psutil
-
tiptop, a command-line system monitor
No, not yet, though I'd love to have that in, too. The problem here is fetching the corresponding data since there's no standard interface this yet. (At least none that I know of.) Follow this bug to get updated.
-
Tracking CPU usage of computer's individual processes (real time update)
here is a good module to start with: https://github.com/giampaolo/psutil
-
Help with a installing a program with wine [WinError 127]
This post thing (idk what it is called) was hard for me to understand, but it looked like they were saying that it may have been an issue with python and wine. They suggested using wine-develop (which i assume is "development" because "apt install wine-develop" cant find it, but it can find development). So I did:
-
Profiling Python code with memory_profiler
It uses the psutil library (or can use tracemalloc or posix) to access process information in a cross platform way, so it works on Windows, Mac, and Linux.
Docker Compose
-
Hosting a simple docker-compose app with Nginx and generate a SSL with certbot on digitalocean droplet
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh # Install docker compose sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose # Apply executable permissions to the binary sudo chmod +x /usr/local/bin/docker-compose # Run Project docker-compose up -d
-
One Minute: Compose
Docker,
-
How to Set Up a Docker Container
This foundation now opens the door to even more powerful concepts. You can explore more advanced concepts such as container networking, streamlining the management of complex applications with Docker Compose, and how to make your application data persistent using volumes.
-
Use same Dockerfile for Dev & Production
In many projects that are containerized, especially in cases where development is also done locally with docker-compose, teams often have two Dockerfiles, 1 for Development, the other for Production. If you happen to have multiple environments like pre-prod, staging and so on, some teams could have different Dockerfiles for these environments.
-
How to Dockerise a NodeJS - TypeScript API || A Comprehensive Guide from Environment Setup to Deployment with a CI/CD Pipeline
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-
Deploy a MongoDB Cluster With Docker Compose
You can also use Docker Compose to deploy the cluster, without having to write all the previous commands.
-
Build and Deploy a ReactJS App to AWS EC2 with Docker, NGINX, and Automate with GitHub Actions.
[ec2-user]$ sudo yum update -y [ec2-user]$ sudo yum install -y docker [ec2-user]$ sudo service docker start [ec2-user]$ sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose [ec2-user]$ sudo chmod +x /usr/local/bin/docker-compose [ec2-user]$ docker --version Docker version 20.10.23, build 7155243 [ec2-user]$ docker-compose --version Docker Compose version v2.18.1
-
MongoDB on Your Local Machine Using Docker: A Step-by-Step Guide
Docker Compose Documentation
-
Docker - Setup a local JS and Python Development environment (Part 2)
groupadd -g 997 docker gpasswd -a jenkins docker curl -L https://github.com/docker/compose/releases/tag/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose #confirm the docker-compose is installed docker-compose version
-
Docker for the Absolute Beginner
Docker Compose overview Docker compose Doc
What are some alternatives?
Ansible - Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
supervisor - Supervisor process control system for Unix (supervisord)
pexpect - A Python module for controlling interactive programs in a pseudo-terminal
LibreNMS-docker - LibreNMS Docker image
Fabric - Simple, Pythonic remote execution and deployment.
terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
Portainer - Making Docker and Kubernetes management easy.
pyinfra - pyinfra automates infrastructure using Python. It’s fast and scales from one server to thousands. Great for ad-hoc command execution, service deployment, configuration management and more.
Cloud-Init - unofficial mirror of Ubuntu's cloud-init
ShutIt - Automation framework for programmers
k3s - Lightweight Kubernetes