Converts commands between docker run and docker compose.
  • Cython 83.4%
  • Python 12.1%
  • CSS 3.2%
  • HTML 0.6%
  • JavaScript 0.4%
  • Other 0.3%
Find a file
2024-03-09 12:24:03 +00:00
images docs: Updated Logo in README 2020-04-26 12:16:02 +01:00
src/composerisation fix: bump for release 2021-03-19 11:09:16 +00:00
tests fix: formatter and linting 2021-03-19 10:59:09 +00:00
website chore: Fix typo 2020-04-30 09:29:03 +01:00
.gitignore Initial Release 2020-03-30 22:05:32 +01:00
.gitlab-ci.yml fix: ci publish docker job 2021-03-19 11:03:42 +00:00
CHANGELOG.md fix: bump for release 2021-03-19 11:09:16 +00:00
dev-requirements.txt Initial Release 2020-03-30 22:05:32 +01:00
Dockerfile fix: bump for release 2021-03-19 11:09:16 +00:00
LICENSE 🎉 Initial Commit 2019-02-25 18:57:41 +00:00
Makefile chore: Updated Website 2020-04-26 12:04:24 +01:00
README.rst chore: remove demo site 2024-03-09 12:24:03 +00:00
requirements.txt Initial Release 2020-03-30 22:05:32 +01:00
setup.cfg fix: bump for release 2021-03-19 11:09:16 +00:00
setup.py fix: bump for release 2021-03-19 11:09:16 +00:00
tox.ini Initial Release 2020-03-30 22:05:32 +01:00

.. image:: https://gitlab.com/hmajid2301/composerisation/badges/master/pipeline.svg
   :target: https://gitlab.com/hmajid2301/composerisation
   :alt: Pipeline Status

.. image:: https://gitlab.com/hmajid2301/composerisation/badges/master/coverage.svg
   :target: https://gitlab.com/hmajid2301/composerisation
   :alt: Coverage

.. image:: https://img.shields.io/pypi/l/composerisation.svg
   :target: https://pypi.org/project/composerisation/
   :alt: PyPI Project License

.. image:: https://img.shields.io/pypi/v/composerisation.svg
   :target: https://pypi.org/project/composerisation/
   :alt: PyPI Project Version


composerisation
===============

A CLI tool used to convert between docker-compose to normal Docker CLI commands. 

.. image:: images/logo_background.png

**Warning**: This project is still in beta.


Usage
-----

.. code-block:: bash

  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

.. code-block:: bash

  $ composerisation -i docker-compose.yml

Docker
------

You can also use the docker image to convert between docker-compose and Docker cli.

.. code-block :: bash

  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 <https://docs.docker.com/compose/compose-file/#reference-and-guidelines>`_.
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 <https://gitlab.com/hmajid2301/composerisation/blob/master/CHANGELOG.md>`_.

Appendix
========

- docker-compose example taken from `here <https://github.com/DataDog/docker-compose-example>`_
- Editable code area from `wales <https://jsfiddle.net/wales/2azkLnad/>`_
- Website inspired by `API Platform <https://api-platform.com/>_`.