A Docker Compose setup with share-checker to verify network shares and an app running hello-world.
Current functionality is limited to NFS shares, SMB shares are expected to be added in a future release.
To request different share types, please open an issue.
share-checker/Dockerfile: Buildsshare-checker.share-checker/entrypoint.sh: Verifies shares.docker-compose.yml: Defines services..github/workflows/ci.yml: CI pipeline.README.md: This file.
DEBUG: Enable debugging for the container with "true"TIMEOUT: Set the timeout to keep looking for shares. Default is 60 secondsINTERVAL: Set the interval to retry share lookup after a failure. Default is 5 SecondsNFS[0-9]: Add NFS shares to lookup inserver:/path/to/shareformat. Each share should have a different number
-
Build:
cd share-checker docker build -t share-checker:latest . cd ..
-
Deploy
# Via Docker run
docker run --name share-checker \
-e NFS1=server1:/mnt/storage/share1 \
-e NFS2=server2:/mnt/storage/share2 \
-e TIMEOUT=60 \
--health-cmd="test -f /tmp/shares-ready" \
--health-interval=10s \
--health-timeout=5s \
--health-retries=3 \
--health-start-period=10s \
sharecheckertest:latest
# Via Docker Compose
docker compose up -d