-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Remove lockfile in home directory on startup #85
Comments
I'm accomplishing this with an init container for the moment, however it seems like this would be appropriate in the entrypoint script, as well. |
Same issue..., what I did is I created another script that tries to find .lock file and if found it deletes then runs the startup process. Sound similar to you @bradjones1 ? |
@Alwandy The official K8s way of doing this would be to use an init container to do what you just described, then run the application. It would be good to include that logic inside this image directly, but an init container allows you to run your setup tasks (like deleting the lock file) without having to build your own image just to add a line to the entrypoint script. |
@bradjones1 thanks, what I did is just do this for docker: I hope this can be prioritised in any way... |
When a pod is killed, Jira doesn't clean up its lock file in the home directory. Atlassian's own documentation (well, blog post) shows a bootstrap script that removes the existing lock file, if found. Should we do the same here?
The text was updated successfully, but these errors were encountered: