Also provide and use a ``hash_get`` function that will choose in the
available binary program. It supports ``sha512sum``, ``md5sum`` (GNU
version) and ``md5`` (BSD version).
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
Separate ``compose`` and ``compose-core`` cache location as the first
needs possibly user permission while the latter will require root
permission.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
We need to parse the command line and modify it accordingly if option
``-f`` or ``--file`` is given.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
Links were poorly supported and are a pain in the ass
due to docker volumes deferencing links in the container
side before making the bind mount, preventing overriding
links in the container file system.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
Using ``DEBUG=1`` on binary compose docker launcher prints
pretty-printed docker command launched as well as important
system variables.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
We want to propagate user's current ssh config, and have specially
crafted vars for each os/users.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
We prefer to create a file with the ``/etc/timezone`` information
in our own file directory to be shared read-only with containers.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
This helps charm direct actions to keep a tidy standard output, and allows
them to be used in scripts.
``docker-compose`` was updated to the latest version available (aka
``1.24.0``) and was patched to include what might have been forgotten
when implementing the ``COMPOSE_IGNORE_ORPHANS`` environment variable.
On ``compose`` side, we need to make sure to pass environment variables
that are to be used by ``docker-compose``.
PR: https://github.com/docker/compose/pull/7020
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
An empty definition is useful if you need the service to be selected as a
default service when using ``compose up`` with no argument, and you don't
have anything to configure in the given service.