You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As specified in the README file, if you want to share more than two directories, you need to add a code snippet in nfsd.sh file, one for each directory you want to share other than first two.
This couldn't be enough in some specific situation, as (for example) if you want to use this docker image as NFS Server in a Google Kubernetes Engine, where using NFS fs is the only (cheeper) way to mount a volume in more than a container replica with ReadWriteMany access type.
Could be useful to handle multiple shared directories dynamically directly in this docker image, avoiding users to create their own Dockerfile.
My proposal is to create a specific environment variables for additional directories other than the first one. Basically, the main shared directory is the most important one, because all other have to be its subdirectories.
For example:
SHARED_DIRECTORY environment allows user to declare the main shared directory (ex: /exports)
EXTRA_SHARED_DIRECTORY_* environment, instead, should allow user to declare incremental extra shared directories (ex: /exports/mysql-datafile).
Then, in nfsd.sh, you can fetch all environment variables starting with EXTRA_SHARED_DIRECTORY_*, and spool them into /etc/exports file.
The text was updated successfully, but these errors were encountered:
Feature Request
As specified in the README file, if you want to share more than two directories, you need to add a code snippet in
nfsd.sh
file, one for each directory you want to share other than first two.This couldn't be enough in some specific situation, as (for example) if you want to use this docker image as NFS Server in a Google Kubernetes Engine, where using NFS fs is the only (cheeper) way to mount a volume in more than a container replica with ReadWriteMany access type.
Could be useful to handle multiple shared directories dynamically directly in this docker image, avoiding users to create their own Dockerfile.
My proposal is to create a specific environment variables for additional directories other than the first one. Basically, the main shared directory is the most important one, because all other have to be its subdirectories.
For example:
Then, in
nfsd.sh
, you can fetch all environment variables starting with EXTRA_SHARED_DIRECTORY_*, and spool them into/etc/exports
file.The text was updated successfully, but these errors were encountered: