-
Notifications
You must be signed in to change notification settings - Fork 865
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
Copy application config file before docker run #7698
Copy application config file before docker run #7698
Conversation
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileGenerator.java
Outdated
Show resolved
Hide resolved
public Path generateConfigFile() throws IOException { | ||
Path dir = generateDirPath(); | ||
|
||
if (!Files.isDirectory(dir, LinkOption.NOFOLLOW_LINKS)) { |
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.
Q: what will be the result if there's a symbolic link named ${dir}
?
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.
The if statement will return true
and then line below will throw exception...
Maybe I could add a check before this if it is symlink, and delete it in that case?
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileGenerator.java
Outdated
Show resolved
Hide resolved
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileGenerator.java
Outdated
Show resolved
Hide resolved
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileGenerator.java
Outdated
Show resolved
Hide resolved
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/OCIPropertiesProvider.java
Outdated
Show resolved
Hide resolved
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileProvider.java
Outdated
Show resolved
Hide resolved
aa3af86
to
f11f4b3
Compare
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileProvider.java
Outdated
Show resolved
Hide resolved
56e6ea0
to
b099be2
Compare
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/assets/ConfigFileProvider.java
Outdated
Show resolved
Hide resolved
b099be2
to
957334c
Compare
957334c
to
04b4884
Compare
When run docker image in compute instance command is invoked, before actually running the image, configuration file will be uploaded to the compute instance and later it would be mounted as a volume so that application is provided with the properties. Properties are generated with PropertiesGenerator