Docker Network Integration Script (ncomp)
Overview
This script is designed to streamline the process of integrating a custom network into Docker Compose services. It automates the task of adding a specified network to all services in a Docker Compose file and ensures the network is properly defined and recognized by Docker Compose.
Features
- Automatic Network Creation: Creates a Docker network if it does not already exist.
- Dynamic Network Integration: Adds a specified network to all services in a Docker Compose file.
- Custom Network Support: Supports custom network names as specified by the user environment.
- Error Handling: Provides error output if the Docker Compose process encounters issues.
Requirements
- Python 3.x
- Docker Python SDK
- PyYAML
Environment Variables
SHARED_NETWORK: The name of the network to be integrated into Docker Compose services. Default is "shared_network".COMPOSE_FILE: The path to the Docker Compose file. Default is "docker-compose.yml".
Usage
- Set Environment Variables (optional): Define
SHARED_NETWORKandCOMPOSE_FILEif you want to use custom values. - Run the Script: Execute the script in the same directory as your Docker Compose file or specify the path using the
COMPOSE_FILEenvironment variable.
Example
# Run with custom network name and Docker Compose file
SHARED_NETWORK=my_network COMPOSE_FILE=my_docker_compose.yml ncomp up
Metadata
Release files for ncomp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ncomp-0.1.0.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ncomp-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / ncomp-0.1.0.tar.gz
| Download URL | ncomp-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
416fa3efc6a26548b7e656bcaa5df442ca6ea2c9c7bcc030e083078f1e0b5254
|
|
BLAKE2b-256 checksum How to use checksums |
b998851c5b2efbd9ad0e4fea1d2052a20fc570e190afdd425842c943ccf90b48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / ncomp-0.1.0-py2.py3-none-any.whl
| Download URL | ncomp-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f3ba802ca18fefab7ff98b2dbde613da87f5f6bf7c76f33d24d325134ca79f08
|
|
BLAKE2b-256 checksum How to use checksums |
5cc87d3008f34e318fc87a485281a2f8f9be8ef4174b433e7ab26fa7ad864f8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for ncomp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.