Add build and run scripts for container management
This commit is contained in:
14
scripts/build.sh
Normal file
14
scripts/build.sh
Normal 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
|
||||
Reference in New Issue
Block a user