Add build and run scripts for container management

This commit is contained in:
2026-05-04 19:42:57 +02:00
parent ccba3f5b06
commit 67a78649ba
2 changed files with 18 additions and 0 deletions

14
scripts/build.sh Normal file
View File

@@ -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

4
scripts/run-container.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e