From 67a78649ba295b3d84c59ab9cf0ee49a90646982 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Mon, 4 May 2026 19:42:57 +0200 Subject: [PATCH] Add build and run scripts for container management --- scripts/build.sh | 14 ++++++++++++++ scripts/run-container.sh | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 scripts/build.sh create mode 100644 scripts/run-container.sh diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100644 index 0000000..422304a --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +REPO_DIR="$(git rev-parse --show-toplevel)" + +if command -v container 2>/dev/null; then + container build -t "registry.koszewscy.waw.pl/openldap:latest" "$REPO_DIR" +elif command -v docker 2>/dev/null; then + docker buildx bake --file "$REPO_DIR"/scripts/docker-bake.hcl +else + echo "No supported container tool found." + exit 1 +fi diff --git a/scripts/run-container.sh b/scripts/run-container.sh new file mode 100644 index 0000000..7e96b6b --- /dev/null +++ b/scripts/run-container.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +set -e +