devfile / api

Kube-native API for cloud development workspaces specification
Apache License 2.0
267 stars 63 forks source link

control over how rsync and start/stop happens #60

Closed maxandersen closed 4 years ago

maxandersen commented 4 years ago

/kind feature

Which functionality do you think we should add?

Being able to customize in devfile what folders are rsynced to not only support in-cluster source builds but be able to take locally built artifacts and put in a specific location on the deployment.

Why is this needed?

to support wildfly, tomcat, nodejs or any other runtime that supports true incremental hotdeploy of resources (wether source or binaries) (quarkus will support this in upcoming releases)

Advantages:

disadvantages:

originally opened at https://github.com/openshift/odo/issues/3132 but asked to also open here.

l0rd commented 4 years ago

Volume is the mechanism that allow sharing files amongst components of a Devfile (see the v2.0 issue about that). And mountSources: true is a simple way to include sources (i.e. projects) in a component.

l0rd commented 4 years ago

Closing this hot reload part is tracked in issue #64 and the folders to sync (using rsync or whatever) can currently be specified with volumes.