-
Notifications
You must be signed in to change notification settings - Fork 18
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
Configurable app home directory base path #7249
Comments
Define HOME_BASEDIR node variable Refs NethServer/dev#7249
In testing 3.4.2-dev.3 Test case 1 Check the correct command usage. Read instructions at https://nethserver.github.io/ns8-core/core/filesystem/#custom-base-path-for-home-directories and configure an alternative path as new home base directory. Test case 2 Check the failure scenarios. The command must validate the home base directory according to these rules:
Ensure the exit code is non-zero if an error is found. Note: |
test case 1: VERIFIED |
NS8 modules (apps) are configured with the default distribution home directory base path,
/home
. For use cases where an alternative directory is required, the base path must be made configurable.A configurable home directory base path is useful for placing application data on a different device if the default one is overloaded. The custom path can also be set before
create-cluster
is run or temporarily to place only a single app instance on an alternative disk.Proposed solution
In the
add-module
action of a node, define a new node environment variable,HOME_BASEDIR
, to run the underlyinguseradd
command.Alternative solutions
The storage requirements of an NS8 app come from persistent volumes and container images. Fine-grained bind-mounts for individual volumes can partially replace this feature.
See also
The text was updated successfully, but these errors were encountered: