A tool used to convert between Docker compose and Docker run.
Project description
composerisation
A CLI tool used to convert between docker-compose to normal Docker CLI commands.
Warning: This project is still in beta.
Demo
Instead of dowloading the tool you can use the demo website. Simply paste your docker-compose.yml file and press convert then copy the contents from the second input box.
Warning: The website is only for demo purposes, the code isn’t particularly clean. This is not a web service but a CLI tool
Usage
pip install composerisation
composerisation --help
Usage: composerisation [OPTIONS]
Converts docker-compose files to Docker comamnds.
- Options:
- -i, --input-file TEXT
Path to file to convert from docker-compose to Docker. [required]
- -l, --log-level
[DEBUG|INFO|ERROR|CRITICAL] Log level for the script.
- --help
Show this message and exit
$ composerisation -i docker-compose.yml
Docker
You can also use the docker image to convert between docker-compose and Docker cli.
docker run -v ${PWD}/tests/data/1.yml:/app/docker-compose.yml composerisation
Supported Command
We support all commands specified in the docker-compose reference file version 3.8 here. Besides from the config options defined below.
Services
Unsupported config options:
configs
credential_spec
depends_on
deploy
external_links
healthcheck
secrets
volume (long syntax)
Networks
Unsupported config options:
enable_ipv6
Future Features
Convert between Docker cli commands to docker-compose
Add docker pull, when using images
Changelog
You can find the changelog here.
Appendix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file composerisation-0.1.2.tar.gz
.
File metadata
- Download URL: composerisation-0.1.2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d146a3623dd9ebd3386bf1c5d7993c25879d7b8c3189325a4db527cb3f4447 |
|
MD5 | 8b1e9a8fb7485191742e0ce9cc79098f |
|
BLAKE2b-256 | 52bb6895103bf606756d38d5ab0df9ad05f7565dee2e687158d4bc34371b2525 |