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 +