Skip to content
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

Merged

Conversation

petrovic-d
Copy link
Collaborator

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

@jhorvath jhorvath self-requested a review August 26, 2024 16:36
@jhorvath jhorvath added LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests enterprise [ci] enable enterprise job labels Aug 26, 2024
@jhorvath jhorvath added this to the NB24 milestone Aug 26, 2024
@apache apache locked and limited conversation to collaborators Aug 26, 2024
@apache apache unlocked this conversation Aug 26, 2024
@jhorvath jhorvath requested review from sdedic and removed request for jhorvath August 27, 2024 08:37
public Path generateConfigFile() throws IOException {
Path dir = generateDirPath();

if (!Files.isDirectory(dir, LinkOption.NOFOLLOW_LINKS)) {
Copy link
Member

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} ?

Copy link
Collaborator Author

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?

@petrovic-d petrovic-d force-pushed the copy-config-files-before-docker-run branch from aa3af86 to f11f4b3 Compare August 29, 2024 11:05
@petrovic-d petrovic-d requested a review from sdedic August 29, 2024 11:17
@petrovic-d petrovic-d force-pushed the copy-config-files-before-docker-run branch 2 times, most recently from 56e6ea0 to b099be2 Compare September 2, 2024 06:33
@petrovic-d petrovic-d force-pushed the copy-config-files-before-docker-run branch from b099be2 to 957334c Compare September 2, 2024 08:13
@petrovic-d petrovic-d requested a review from sdedic September 2, 2024 08:13
@petrovic-d petrovic-d force-pushed the copy-config-files-before-docker-run branch from 957334c to 04b4884 Compare September 2, 2024 14:47
@jhorvath jhorvath merged commit f30b861 into apache:master Sep 3, 2024
32 checks passed
@jhorvath jhorvath deleted the copy-config-files-before-docker-run branch September 3, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enterprise [ci] enable enterprise job LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants