{"id":16662447,"url":"https://github.com/nicolast/contained-ganesha","last_synced_at":"2025-10-20T01:38:59.216Z","repository":{"id":37268440,"uuid":"256955770","full_name":"NicolasT/contained-ganesha","owner":"NicolasT","description":"NFS-Ganesha running in container environments. Properly.","archived":false,"fork":false,"pushed_at":"2025-08-14T14:53:35.000Z","size":382,"stargazers_count":14,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T16:25:06.250Z","etag":null,"topics":["docker","docker-compose","kubernetes","nfs","nfs-ganesha","nfs-server"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NicolasT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-19T09:00:32.000Z","updated_at":"2025-08-14T14:53:39.000Z","dependencies_parsed_at":"2025-08-06T16:27:11.746Z","dependency_job_id":"fdba825f-0d12-4373-8f1e-b0e846b9c308","html_url":"https://github.com/NicolasT/contained-ganesha","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/NicolasT/contained-ganesha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasT%2Fcontained-ganesha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasT%2Fcontained-ganesha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasT%2Fcontained-ganesha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasT%2Fcontained-ganesha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicolasT","download_url":"https://codeload.github.com/NicolasT/contained-ganesha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasT%2Fcontained-ganesha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271592441,"owners_count":24786590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","kubernetes","nfs","nfs-ganesha","nfs-server"],"created_at":"2024-10-12T10:37:57.093Z","updated_at":"2025-10-20T01:38:54.190Z","avatar_url":"https://github.com/NicolasT.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"contained-ganesha\n=================\n[NFS-Ganesha](https://nfs-ganesha.github.io) running in container environments. Properly.\n\nThis repository contains Docker container image build files for all services\nrequird to run an NFS-Ganesha server in a containerized environment, as well\nas deployment files for the following container environments:\n\n- [docker-compose](https://docs.docker.com/compose/)\n- [Kubernetes](https://kubernetes.io)\n- [Podman](https://podman.io)\n\nTo build the container images, run `make containers`. See `deploy/` for more\ninformation on the supported deployment mechanisms.\n\nRationale\n---------\nAn NFS server requires several services to be running (at least to support\nNFS3):\n\n- A *portmapper* daemon (`rpcbind`)\n- An NLM status daemon (`rpc.statd`)\n- In case of NFS-Ganesha, `dbus-daemon` for configuration\n- The NFS server, which in case of NFS-Ganesha includes `mountd`, `nlockmgr`\n  and `rquotad`\n\nSome projects provide a Docker container image which includes and starts all\nthese services in a single container. This goes against the principes of\ncontainerized deployments, where a single container should ideally run only a\nsingle service, and each container image should only contain the files required\nto run this service.\n\nAs such, this projects provides 4 container images (one for each service), and\nruns all of them in a single Pod (think 'network namespace'), which is a\nstandard concept in Kubernetes, or emulated when using `docker-compose` (see\nthe design section in the documentation).\n\nThe container images apply as much sharing of layers as possible (by\nconstruction of the various `Dockerfile`s). They each contain a healthcheck\nscript.\n\nSecurity\n--------\nService deployment using containers can increase security of the system, e.g.,\nby restricting the *capabilities* of a containerized process. The services\ndeployed by this project are confined using the following mechanisms:\n\n- The container image (root filesystem) is made read-only. Locations where the\n  services require write access are mounted as a volume (either *tmpfs* or\n  persistent).\n- All Linux *capabilities* are dropped by default (`--cap-drop ALL` or\n  similar). Required capabilities are added when needed.\n- Services run as non-root user, where possible. However, this is (for now) not\n  enforced by the container engine: the services start as `root`, then `setuid`\n  and `setgid` themselves.\n- When using `docker-compose`, the `dbus-daemon` container is not connected to\n  the network, since this is not required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolast%2Fcontained-ganesha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolast%2Fcontained-ganesha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolast%2Fcontained-ganesha/lists"}