-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Support original file name for config file #8988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the PR. Can you please take a look at the launch script's integration tests and add one that fails without this change and passes with it? |
i am trying to do the test, but before i start i was not able to run current test.
Any help , i could not figure out where it is getting stuck |
You probably just need to wait a while. The first time those tests run they can take a really long time as it downloads everything it needs to build the Docker images. |
i did the changes to the test files , but i am not able to test them with my updated script. I thought i need to build spring-boot-maven-plugin , so it got the new script on doing test . but it is failing like below
i tried to update to latest spring-boot code but seems it is a mess now as i had all changed in this branch :(. Can you help on what is needed so i force running the tests indicated above to use the new script i am suggesting ? |
i was trying to build the maven-plugin from its folder , but when i used Should i do another PR as this one got mixed up |
@shabour you should rebase your |
…ckoverflow.com/questions/43584510/conf-file-for-spring-boot-application](config file) this is needed if your systemd or init.d is pointing to a symbolic link file instead of the original fat jar
8548ee6
to
86a7d93
Compare
@snicoll wow thanks for the tip |
I need help in checking out what is the problem , when doing the commands manually the script do work perfectly but on automated tests it is failing
I commented out removing the container but i am not getting any good info from log
any tip on how to check what is going on ? |
You should be able to get some more information from the app's log file |
I am new to docker , i should get this from docker container right ? |
Yes, that's right |
…symbolic link except if it contain init.d Add test to check the configuration file when having double link
The reason it was failing on tests was because I am testing using systemd while in tests it is init.d which is a yet another link. Note : My tests were only done only on ubuntu images as centos was not passing the build . it was not able to download oracle java |
Any thing still missing or need to be done on this PR @wilkinsona |
@shahbour No, nothing more is needed at this stage other than me carving out some time to review and hopefully merge it. Thank you for all your efforts thus far. |
@wilkinsona I've tentatively targeted this to 2.0, if you think 1.5.x is better feel free to change. |
* gh-8988: Polish "Find .conf file next to symlink to jar that's using the launch script" Find .conf file next to symlink to jar that's using the launch script
Thanks very much for the PR, @shahbour. Particularly for taking the time to also add the integration test. I've merged the changes into master. |
#Support original file name even if it is a symbolic link for conf file . this is needed if systemd or init.d is pointing to a symbolic link file instead of the original fat jar stackoverflow.