-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Make .env
being writable optional when configuring via environment variables
#499
Comments
Hey, thanks for the input! |
We're not mounting any custom The file is part of
So The setup writing to securityContext:
readOnlyRootFilesystem: true This is the |
I'll see if I can update the setup documentation. It is possible to configure LinkAce without the built in setup, which also does not need the env file being writable. |
It's not just about documentation. The included This is the preflight check of the container without mounting a Required env's are defined |
I am having the same issue. |
For the setup process it should be enough to make the file read and writable by others (0766) and then switch it back after that. |
This still doesn't work for me, perhaps it's because I have a different folder setup.
I gave 0766 to |
Just noticed that the thread is about using Docker environment data and the setup without the env file. |
The It won't affect the rest of the installations anyway |
I ran into this as well. I create a I suggest having an option to disable the setup entirely, which will both skip that step and also not require the |
Is your feature request related to a problem? Please describe.
The Linkace setup process requires
.env
to be writable during first time setup. In the TrueCharts app repo we implemented a Linkace Helm chart that allows TrueNAS SCALE users to easily deploy Linkace with a few clicks.The Helm chart uses only environment variables to configure Linkace. However, the first-time-setup process requires
.env
to be writable by thewww-data
user.Right now, the user needs to connect to the container via shell,
chmod a+w /app/.env
, and then finish the setup. The DB connection is actually written to.env
. However, these changes are never used and discarded the next time the container starts.Describe the solution you'd like
When the configuration via environment variables is sufficient,
/app/.env
being writable should be optional.Describe alternatives you've considered
Fix (more of a hack) the issue by modifying the Docker image like this:
The text was updated successfully, but these errors were encountered: