-
Notifications
You must be signed in to change notification settings - Fork 20
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
GH-213: enhance WorkspaceUtil to also search in envrionment variables #214
Conversation
@@ -28,7 +28,7 @@ public class FeignPublishServiceTestDrive { | |||
|
|||
public static void main(String[] args) { | |||
try { | |||
Workspace workspace = WorkspaceUtil.getSystemWorkspaceBuilder().build(); | |||
Workspace workspace = WorkspaceUtil.getWorkspaceBuilder().build(); | |||
String providerId = WorkspaceUtil.getSystemProperty(AIO_PROVIDER_ID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you want to load these other AIO_*
property using the same pattern ? and augment getSystemProperty
with System.getEnv()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -28,7 +28,7 @@ public class FeignPublishServiceTestDrive { | |||
|
|||
public static void main(String[] args) { | |||
try { | |||
Workspace workspace = WorkspaceUtil.getSystemWorkspaceBuilder().build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would favor keeping the same interface/method-name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I'll revert back the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
See: #213
Description
As described in the issue, added the possibility to get the configuration for the
Workspace
from environment variables, which makes it easier to use.Related Issue
#213
Motivation and Context
Enable the usage of environment variables in docker containers where an entrypoint is defined in exec form, passing the configurations through ENV variables without the need to bind them using the system properties, which turns out to be really cumbersome.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: