Files
azure-storage-emulator/run-server.sh

27 lines
545 B
Bash
Executable File

#!/usr/bin/env bash
AZURITE_DIR="storage"
if [[ ! -d "$AZURITE_DIR" ]]; then
echo "No accounts found"
exit 0
fi
if ! command -v azurite &> /dev/null; then
echo "Azurite is not installed. Please install it with 'npm install -g azurite'"
exit 1
fi
AZURITE_ACCOUNTS_FILE="$AZURITE_DIR/accounts.env"
set -a
. $AZURITE_ACCOUNTS_FILE
set +a
azurite \
--disableTelemetry \
--location "$AZURITE_DIR" \
--key "$AZURITE_DIR/server_key.pem" \
--cert "$AZURITE_DIR/server_cert.pem" \
--blobHost 0.0.0.0 \
--blobPort 443