-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
MP-Configuration: Environment variables not resolved in prod mode #4123
Comments
I tried the general idea with the a modified version of the Then I also tried with the REST-Client and indeed I could reproduce the problem you mention. |
@dmlloyd I looks like the |
If not it's a bug. We definitely should be adding the expander to all config sources. That said it might not be worth fixing right now because (apart from the config work I'm already doing which would definitely conflict) I expect MP-config and thus SmallRye Config to formally support property expansion sometime in the next few weeks. |
Nice! I think then it makes sense to wait. |
I can't wait because of an important project. I need at least a workaround. I tried to place an application.properties in the config directory under the workdir but it is not working also. Any alternatives? |
You can place |
@geoand I already tried that... sadly doesn't work.. |
@HeavyTobi doesn't work how? I have done that multiple times and it does work: For example if I have:
and I launch the application from inside
then the (runtime) properties defined in |
Can you try with 0.27, as there was an issue where Rest Client properties weren't respecting the config profiles, which is now resolved |
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes quarkusio#2292 (partially), Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groudwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Fixes quarkusio#4123, Fixes quarkusio#4119, Fixes quarkusio#4172, Fixes (part of) quarkusio#2292 Fixes quarkusio#734, Fixes quarkusio#4512, Fixes quarkusio#3498, Fixes quarkusio#3937 Fixes quarkusio#2816, Fixes quarkusio#4077, Fixes quarkusio#3516, Fixes quarkusio#2760 Fixes quarkusio#1989, Fixes quarkusio#3030, Fixes quarkusio#3637, Fixes quarkusio#1887 Groundwork for quarkusio#2489, Fixes quarkusio#5116, Fixes quarkusio#5192, Fixes quarkusio#3888 Fixes quarkusio#3089, Fixes quarkusio#390, Fixes quarkusio#891, Fixes quarkusio#5484 Fixes quarkusio#5454
Describe the bug
I am trying to configure the REST client base url using the application.properties, which is working
Expected behavior
If no environment variable called SERVICE_URL is set, a default value should be used as URL, if it is set, it should use the env variable.
Actual behavior
the application is not even resolving the expression in the application.properties file when using the jar file generated with the quarkusBuild task. But works fine in QuarkusDev.
Same issue when using Windows and Linux
To Reproduce
Steps to reproduce the behavior:
Configuration
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment [Windows] (please complete the following information):
uname -a
orver
: Microsoft Windows [Version 10.0.18362.356]java -version
: openjdk version "11" 2018-09-25Environment [WSL] (please complete the following information):
uname -a
orver
: 4.4.0-18362-Microsoft Switch to the Maven distributed copy of the SubstrateVM annotations #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 GNU/Linuxjava -version
: openjdk version "11.0.4" 2019-07-16Additional context
using gradle as build tool
The text was updated successfully, but these errors were encountered: