devops:vagrant
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devops:vagrant [2022/12/18 20:31] – [Setting up Rsync folder-synch on Windows] skipidar | devops:vagrant [2024/06/22 16:41] (current) – [Error: Authentication failure. Retrying...] skipidar | ||
---|---|---|---|
Line 368: | Line 368: | ||
{{https:// | {{https:// | ||
+ | |||
+ | |||
+ | ==Ssh into Vagrant. Run continuos build in one shell== | ||
+ | |||
+ | See https:// | ||
+ | |||
+ | Skip the tests.\\ | ||
+ | Dont use the daemon. | ||
+ | |||
+ | <sxh shell> | ||
+ | vagrant ssh | ||
+ | cd "/ | ||
+ | ./gradlew build -xtest --no-daemon --continuous | ||
+ | </ | ||
+ | |||
+ | |||
+ | == Configure the Spring Boot application to hot-deploy changes == | ||
+ | |||
+ | The Spring boot applications needs to be advised, \\ | ||
+ | to take up any rebuilt app and hot-deploy it. | ||
+ | |||
+ | Add dependency to " | ||
+ | |||
+ | build.gradle | ||
+ | <sxh> | ||
+ | dependencies { | ||
+ | |||
+ | // makes Spring boot hot swap rebuilt jar to tomcat | ||
+ | developmentOnly ' | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==Ssh into Vagrant. Run application like Spring Boot application== | ||
+ | |||
+ | |||
+ | <sxh shell> | ||
+ | vagrant ssh | ||
+ | cd "/ | ||
+ | ./gradlew bootRun --args=' | ||
+ | </ | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | |||
+ | ===== Error: Authentication failure. Retrying... ===== | ||
+ | |||
+ | Thats also the reason for disk /mnt/d not being mounted correctly | ||
+ | |||
+ | <sxh shell> | ||
+ | |||
+ | # give the home permissions back to vagrant | ||
+ | # without that - / | ||
+ | # and also / | ||
+ | # so that no ssh connection works and | ||
+ | # vagrant ssh - failes with " | ||
+ | sudo chown -R vagrant: | ||
+ | </ | ||
+ |
devops/vagrant.1671395508.txt.gz · Last modified: by skipidar