Add build and run scripts for Azurite container setup

This commit is contained in:
slawek committed 2026-02-27 11:22:17 +01:00
1 parent 23b2a6ac63
commit 3c45c7487b
2 files changed
+18

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if command -v dockerd &> /dev/null; then
docker build -t azurite:latest .
elif command -v container &> /dev/null; then
container build -t azurite:latest .
else
echo "Neither supported container runtime found." >&2
exit 1
fi
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if command -v dockerd &> /dev/null; then
docker run --rm -it --env-file accounts.env -p 443:443 -v ./storage:/storage azurite:latest
elif command -v container &> /dev/null; then
container run --rm -it --env-file accounts.env -p 443:443 --mount type=bind,source=./storage,target=/storage azurite:latest
else
echo "Neither supported container runtime found." >&2
exit 1
fi