Valentin Lab
b9dd681f88
new: [compose-core] added ``--no-post-deploy`` and prevented also ``post-deploy`` from running when using ``--no-hooks``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
4 years ago
Valentin Lab
d055b7e699
fix: `tech-dep` could be mis-read and generate unwanted dependency loops
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
4 years ago
Valentin Lab
32aaf2e0ea
fix: dev: prevent duplication of network parameters
Previously, ``_set_db_params`` would be called several times and
parameters would then be concatenated. We didn't want
``_set_db_params`` to overwrite and start from scratch to let
possibility for customization before and after the call.
Here ``set_db_params`` will set a global variable to detect if it was
already launched prior to running content of ``_set_db_params``.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
4 years ago
Valentin Lab
79744ae283
fix: dev: filter running containers on the ``master-service`` tag
Actually other tag for subordinates are useless.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
4 years ago
Valentin Lab
e35be85381
fix: dev: [compose-core] invalid caching key in function ``get_service_relation``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
4 years ago
Valentin Lab
15dad81fc4
new: [compose-core] include last version of ``kal-shlib-docker``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
a5af721887
fix: [compose] incorrect indentation in debug message !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
7f82029aa6
new: [compose] use host's docker and ssh config on linux os
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
42afae776e
fix: some compose variables would incorrectly be shown as empty
These variable are valued after the displaying code.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
3fd2443061
fix: dev: protect some local variables !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
8c7cf28bf6
fix: ``compose`` command line arguments could be eaten
When rewriting arguments, any bash builtin's ``echo`` arguments
would be removed.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
5081b59402
fix: support BSD also for standard macosx compatibility
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
4f88bcfec8
fix: compatibility with bash v5
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
be8da58c52
new: dev: show loaded config files !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
cb3c784c66
fix: support running in directory having name containing uppercase
The direct parent could be used to make the default project name,
and uppercase are not supported for container names.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
64ffcf466b
new: add ``SHOW_ENV`` and ``SHOW_CONFIG_LOCATIONS``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
621a93706b
chg: dev: clean color definition !minor
Removing obsolete/unused color variables
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
656069c59a
chg: remove requirement on ``sha256sum``
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>
5 years ago
Valentin Lab
59cb64ff92
fix: in WSL, make compose file accessible
We need to copy compose file in a docker host accessible
directory.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
6c3ab38bb6
fix: dev: factorize some literals in a variable !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
796e60af8c
fix: config files list is specific by os
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
cd7d069af9
fix: override for inner compose
We keep the bin override by sending it through the new session variables.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
7c8b0d7ac4
chg: dev: store env vars in session file
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
1e4e1e047f
fix: remove docker and ssh auth config
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
31872d0562
fix: include WSL support
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
a907a61585
fix: dev: shellcheck good advices refactor !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
bf3b3fa59f
chg: dev: avoid ``exit`` in favor of ``return``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
44ac8bf62c
fix: prevent permission errors when compose is writing cache files
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>
5 years ago
Valentin Lab
a4c6e9e7cd
fix: dev: small improvements !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
225d1e5cce
fix: missing export on function ``docker_compose_store``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
3ae01755f2
fix: management of ``compose.yml`` location
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>
5 years ago
Valentin Lab
813dd0c06b
new: enter fully setup compose image for debug
With ``ENTER=1``, one can enter the fully configured
container instead of launching compose.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
5d0c90ff00
fix: remove error message about sessions that can't be deleted
Not a nice solution, but message are kept when using ``DEBUG``.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
a968ccc3a9
chg: remove charm-store inner link support
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>
5 years ago
Valentin Lab
ffe43b0194
new: print usage section in help !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
33dcd642c5
new: dev: add and re-order function declaration
Add ``kal-shlib`` functions for next commits and
classify in 3 sections functions by source.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
00b4206fc6
new: dev: debug messages on launcher
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>
5 years ago
Valentin Lab
e97351adb1
fix: non-root user could not launch compose
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>
5 years ago
Valentin Lab
4123198e70
new: timezone is fixed for containers
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>
5 years ago
Valentin Lab
87823ae45b
new: dev: make compose sourcable for eventual tests !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
0c97d1f775
chg: dev: include color library and common element !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
d9adfdfa7c
chg: dev: implement shellcheck advice !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
1af2ae3312
fix: ``--no-hooks`` was not fully implemented
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
bcc8556412
fix: invalid usage of ``return``
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
d14f10e2a5
fix: invalid cache file names
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
6937945ea4
chg: raise waiting for tcp connection timeout
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
dd7bf70df8
fix: missing options in ``--help`` options
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
5 years ago
Valentin Lab
a3d694bf4e
new: ``!file-content`` modifier to allow including file contents in some config values
6 years ago
Valentin Lab
b690c921f4
fix: ``subordinate`` charm should not be launched
6 years ago
Valentin Lab
ffe47e82dd
fix: same ``host-resource`` would incorrectly be setup multiple times
This is an obvious typo that would also not break if host resource
setup failed.
6 years ago