From 3c45c7487b46337af3aa7f94dfb1606c94766e38 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Fri, 27 Feb 2026 11:22:17 +0100 Subject: [PATCH] Add build and run scripts for Azurite container setup --- build.sh | 9 +++++++++ run.sh | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 build.sh create mode 100644 run.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..5383a72 --- /dev/null +++ b/build.sh @@ -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 diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..a533441 --- /dev/null +++ b/run.sh @@ -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