microscopic-river-74022
09/24/2024, 11:27 PMmicroscopic-river-74022
09/24/2024, 11:28 PMsync
configuration key. This specifies which files or directories to sync to which paths inside the running containers of the service when it's in sync mode. Sync mode can be enabled by setting the --sync
flag on the garden deploy
command. This configuration key is available for different module types like jib-container (), container (), kubernetes (), and action-types ().
For example, in a Kubernetes module, the configuration would look like this:
yaml
sync:
paths:
- containerPath: /app/src
sourcePath: ${actions.build.vote-image.sourcePath}/src
mode: two-way
This configuration specifies that the /app/src
directory inside the running container should be kept in sync with the src
directory in the vote-image
build action's directory. The two-way
mode means that changes in either location are mirrored to the other.microscopic-river-74022
09/24/2024, 11:28 PM