generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: include JAR dependencies in Kotlin deploys
By adding the following fragment to the POM: ```xml <execution> <id>copy-dependencies</id> <phase>compile</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/dependency</outputDirectory> <includeScope>runtime</includeScope> </configuration> </execution> ``` `ftl deploy ./target` will upload all dependendcies as well as compiled source. This actually works super well in practice, and I think we can completely remove the need for building a custom `ftl-runner` Docker image. One issue is that this now results in the runners having to download quite a few MB of artefacts on each deploy, but we can mitigate this by making the controller->runner artefact download process incremental too, and have each runner maintain its own cache. Probably something for later though, as it's generally pretty fast so far.
- Loading branch information
1 parent
c19fe47
commit 40457f8
Showing
4 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
controller: build/release/ftl-controller --key C01H5BRT09Y07547SETZ4HWRA09 --bind http://localhost:8892 | ||
runner0: build/release/ftl-runner --key R01H5BTS6ABP1EHGZSAGJMBV50A --language go --language kotlin --bind http://localhost:8894 --template-dir build/template | ||
runner1: build/release/ftl-runner --key R01H5BTSGKQ8AZ9S22N9N1SM9HV --language go --language kotlin --bind http://localhost:8895 --template-dir build/template | ||
runner2: build/release/ftl-runner --key R01H8DD0H13WX636B70WV7D216G --language go --language kotlin --bind http://localhost:8896 --template-dir build/template | ||
runner3: build/release/ftl-runner --key R01H8DD0V6EFZWKV2G2XBBHEDP9 --language go --language kotlin --bind http://localhost:8897 --template-dir build/template | ||
runner4: build/release/ftl-runner --key R01H8DD0Z5GRT3QP1MBARC4TW08 --language go --language kotlin --bind http://localhost:8898 --template-dir build/template | ||
runner5: build/release/ftl-runner --key R01H8DD12R0RZZS8AGYBGVP5KQ8 --language go --language kotlin --bind http://localhost:8899 --template-dir build/template | ||
runner6: build/release/ftl-runner --key R01H8DD15Y9SPGDQMXNJ0CF3C5M --language go --language kotlin --bind http://localhost:8900 --template-dir build/template | ||
runner7: build/release/ftl-runner --key R01H8DD18Z6CTY301G8GE8N52CP --language go --language kotlin --bind http://localhost:8901 --template-dir build/template | ||
runner8: build/release/ftl-runner --key R01H8DD1D1W3KJG7NY63DYCCJMY --language go --language kotlin --bind http://localhost:8902 --template-dir build/template | ||
runner9: build/release/ftl-runner --key R01H8J2BMH8VTNKAT8MB66Q2SHG --language go --language kotlin --bind http://localhost:8903 --template-dir build/template | ||
runner0: build/release/ftl-runner --key R01H5BTS6ABP1EHGZSAGJMBV50A --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner1: build/release/ftl-runner --key R01H5BTSGKQ8AZ9S22N9N1SM9HV --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner2: build/release/ftl-runner --key R01H8DD0H13WX636B70WV7D216G --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner3: build/release/ftl-runner --key R01H8DD0V6EFZWKV2G2XBBHEDP9 --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner4: build/release/ftl-runner --key R01H8DD0Z5GRT3QP1MBARC4TW08 --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner5: build/release/ftl-runner --key R01H8DD12R0RZZS8AGYBGVP5KQ8 --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner6: build/release/ftl-runner --key R01H8DD15Y9SPGDQMXNJ0CF3C5M --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner7: build/release/ftl-runner --key R01H8DD18Z6CTY301G8GE8N52CP --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner8: build/release/ftl-runner --key R01H8DD1D1W3KJG7NY63DYCCJMY --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template | ||
runner9: build/release/ftl-runner --key R01H8J2BMH8VTNKAT8MB66Q2SHG --language go --language kotlin --bind http://localhost:${PORT} --template-dir build/template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters