Valentin Lab
80fbf42b07
new: [compose-core] cache images on ``$COMPOSE_DOCKER_REGISTRY``
9 months ago
Valentin Lab
8ea4310945
new: dev: [compose-core] refactor ``service_base_docker_image()``
10 months ago
Valentin Lab
9dbc151f78
fix: dev: [compose-core] declare all local variables in ``get_relation_data_file()``
10 months ago
Valentin Lab
83108d4dc1
fix: [compose-core] improve protection of relation data file !minor
Fixes a timing issue where the data in the relation file could be read.
10 months ago
Valentin Lab
1a559ff7fb
fix: [compose-core] don't ignore relation constraint if providers are more than one
10 months ago
Valentin Lab
0c4868ee5c
fix: [compose-core] exit after errors in relation config retrieval
10 months ago
Valentin Lab
0db85daa48
new: [compose-core] provide full set of ``p-err`` and ``read-0-err`` for charms
10 months ago
Valentin Lab
8c0d97facb
new: [compose-core] provide ``get_service_incoming_relations`` to list services linked to a service
10 months ago
Valentin Lab
3a3a102459
fix: [compose-core] prevent re-building images already present
Here, subordinate charms requested images using their names and not
their master's charm name. This would trigger builds of images already
present.
10 months ago
Valentin Lab
9313ca1432
new: [compose-core] ensure compatibility with new shyaml rust implementation
10 months ago
Valentin Lab
2ab84d6692
fix: [compose-core] make special ``no-hooks`` keyword work properly in actions
11 months ago
Valentin Lab
78d3cb4da1
new: [compose-core] prevent sub compose command to try to solve again relation constraints
This is because sub-compose command are often in a subset of the
services and as a consequence they do not share the same environment
and might solve the constraints differently.
11 months ago
Valentin Lab
a9b2c33f96
fix: dev: [compose] avoid unnecessary command ``cat``
11 months ago
Valentin Lab
5d6de46968
fix: [compose] ensure cache directory is available on linux as we can use it
11 months ago
Valentin Lab
bf4da4d8a2
fix: [compose] catch possible error and bail out
11 months ago
Valentin Lab
aded4a7dde
new: [compose-core] add ``memory.limit`` metadata value to limit container's memory
2 years ago
Valentin Lab
9423313038
new: [compose-core] provide ``COMPOSE_ACTION`` to charms
2 years ago
Valentin Lab
15862fe3a8
fix: get only running container for service of given project for =get_running_containers_for_service=
2 years ago
Valentin Lab
264daf1417
fix: do not allow grabbing other project's container when using =ensure_db_docker_running=
2 years ago
Valentin Lab
507997d3a4
fix: ``get_all_relations`` should set ``ALL_RELATIONS`` even on cache hit
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
7c23009e9e
new: consider all relations involved in an indirect action upon call of indirect action
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
0067609601
fix: default value for ``constraint`` in relation definition of ``metadata.yml`` enforced on empty values.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
c559c5b78b
fix: default value for ``auto`` in relation definition of ``metadata.yml`` enforced on empty values.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
ba9c23c04d
fix: [compose-core] prevent summoning each services in one go
Some requirement might solve other requests, especially the ones that
are not clear because more than one provider exist.
11 months ago
Valentin Lab
99b78d9411
fix: [compose-core] apply bash syntax improvements
1 year ago
Valentin Lab
cba4f2576f
new: [compose-core] add new ``stub`` service type
``stub`` services do not have any container running nor images.
They are intended to stand for externally managed services.
1 year ago
Valentin Lab
0330936bce
fix: dev: [compose-core] remove useless code !minor
1 year ago
Valentin Lab
62baa4f655
new: [compose-core] avoid displaying information about optional relations available in quiet mode
1 year ago
Valentin Lab
15ac855df8
new: [compose-core] add ``--get-available-actions`` commands
1 year ago
Valentin Lab
00046e6eb2
fix: dev: replace a ``return`` with an ``exit`` !minor
1 year ago
Valentin Lab
bafb5e01ee
fix: [compose-core] improve safety of a bash construct !minor
1 year ago
Valentin Lab
9f4faac412
new: [compose-core] add ``-c|--color`` argument to force color mode
1 year ago
Valentin Lab
0385df68a4
fix: [compose-core] quit with error if ``get_master_service_for_service`` fails
1 year ago
Valentin Lab
9578503e4d
fix: [compose-core] use ``return 1`` instead of ``exit 1`` in ``_get_container_relation()``
1 year ago
Valentin Lab
e89a2d5764
fix: [compose-core] use ``return`` instead of ``exit`` in ``get_healthy_container_ip_for_service``
1 year ago
Valentin Lab
7d860f732a
fix: [compose-core] display errors when running action and constraints are not verified
Before it would quit without any notice. A message is also added for a
common fix when constraints fails unexpectedly.
1 year ago
Valentin Lab
c447238e0d
fix: [compose] prevent session directory to disappear
2 years ago
Valentin Lab
ec75b78199
fix: output docker cleaning information on the stderr
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
d08939ba38
chg: dev: no need to check constraints on infered relation when running action
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
142167c7fc
fix: dev: ``exit`` and ``return`` corrections !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
3a001879fc
fix: [compose,compose-core] revert detection of used volume
This is not iso-functional and can't detect if a subvolume was mounted.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
7a475500b2
fix: [compose] prevent stalling when ``docker inspect`` stalls on a container.
Improve ``is_volume_used`` implementation largely and doesn't require
``docker inspect`` call anymore.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
adcd35cc1a
fix: [compose-core] spurious ``return`` in shell body !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
f1d99cea05
new: [compose-core] add ``after`` option in relation definition
With ``after``, you can specify another relation name or a list of
relation names, after which the current relation must wait before
launching it's relation hook.
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
0429fab695
fix: [compose-core] whitespaces !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
b067d0965a
new: [compose-core] add ability to enforce no-hooks from actions script
Keywords are added in a comment line with ``compose:`` prefix. Keywords
should be space separated. Example:
#!/bin/bash
## compose: no-hooks foo bar
# ... CODE ...
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
084f9a0c0a
fix: [compose-core] repair indirect action
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2 years ago
Valentin Lab
21ec7626c6
chg: dev: [compose-core] minor performance improvement by delaying local declaration !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
3 years ago
Valentin Lab
de940f402e
fix: dev: [compose-core] minor improvement against unintended option to ``echo`` !minor
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
3 years ago
Valentin Lab
cb1772f187
fix: [compose-core] make ``get_relation_data_dir()`` output correct directory even when run from a relation
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
3 years ago