Files
azure-storage-emulator/run.sh

10 lines
407 B
Bash
Executable File

#!/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