faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

Cage for compiled languages #114

Open MaksimMyshkin opened 3 years ago

MaksimMyshkin commented 3 years ago

Is there opportunity to use Cage with compiled languages (like Java)?

There is similar tools that can automatically deploy apps on code changes (Tilt for example) but those tools are more CI/CD centric. Cage is more friendly for developers but I don't see possibility to use it with Java.

Tilt has nice guide how to make deploy on code changes fast for compiled languages https://docs.tilt.dev/example_java.html. Would be nice to incorporate some missed features to support compiled languages (if any).

emk commented 3 years ago

The cage source mount command does not currently do a great job with compiled languages. Usually I resort to something like cage run $CONTAINER compile_command && cage restart $CONTAINER. I don't have any particularly well-thought-through ideas about how to handle this at this point, but it would probably involve automating the above.