* Translate setup.py to pyproject.toml
* Introduce PEP518 by using Poetry as package manager
* Introduce PEP402-ish package structure
* Remove requirements.txt and setup.py
* Update Dockerfile and Docs for new packaging method
* Bump dependencies, remove six
six is no longer necessary as of docker-py 5.0.1 (see https://github.com/docker/docker-py/pull/2863)
I added a bit of information about installing this tool to the system and about my AUR packages.
Also the PyPI version is outdated (1.0.1 from Jan 3 2016, https://pypi.org/project/docker-autocompose/#history), is it still supported?
* Fix a bug where strings with special characters are not quoted
Before:
```
...
services:
<service>:
....
logging:
options:
tag: {{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}
max-file: 3
...
```
and docker-compose up fails
after:
```
...
services:
<service>:
....
logging:
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
max-file: "3"
...
```
and docker-compose up works
* Remove no longer necessary workarounds
* Add gather info about all networks in the system.
* Only generate host networks if all info is required.
* Fix issue getting network information.
Co-authored-by: Juan Biondi <juan@payslip.com>
* Add gather info about all networks in the system.
* Only generate host networks if all info is required.
Co-authored-by: Juan Biondi <juan@payslip.com>
With somewhat-recent docker features and spec changes that have been included in the compose file generation for this script, specifying compose file version 3.6 (at least) is necessary for the output compose file to pass validation using "docker-compose config".
(from @d-EScape)
One PR that includes my suggestions for #17 and some new ones:
The -all option would not work because every iteration of container_names could set the 'networks' and 'volumes' to None. Even if a previous container had a network. Later iterations could not add a network, because it was no longer a dict, resulting in an exception.
The code might need some cleaning up. I left some comments and old pieces (commented out) to explain to @Red5d what I did and why. Since I am new to this script and the docker-compose format i might have overlooked something. Please check.
Co-authored-by: d-EScape <8693608+d-EScape@users.noreply.github.com>
* better handling for default networks
* fix for issues/43
* check for none explictly rather than allowing truthy/falsy conversion
* update to read volume data from mounts, rather than host config binds
Co-authored-by: Adam Doussan <acdoussan@Adams-MacBook-Pro.local>