Skip to content

Provide feature that causes image rebuilding and deployment when files specified in configuration change. #389

@ALCarden

Description

@ALCarden

Is your feature request related to a problem?
Currently our development stack is nodejs based, when we change our package.json it gets synced but the changes are not applied because npm install is not re-run in the container.

We can (and do disable) the sync of package.json but we to do delete the generated.yaml to force a rebuild of the image which contains the npm install run task.

Which solution do you suggest?
Have a new image configuration section consisting of an array of file globs which on change cause the docker file to be rebuilt, the tag to be updated and the configuration to be redeployed.

or

When specific file changes are detected for sync provide a property where we can specify a script to run in the container, e.g. to cause the application running in the container to take some action (development purposes only)

Which alternative solutions exist?
Manual: Remove the generated.yaml

Additional context

/kind feature

Metadata

Metadata

Assignees

Labels

area/chart-deploymentIssues related to the deployment of charts with helmarea/devIssues related to devspace devkind/featureNew feature or feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions