added builder script

This commit is contained in:
2024-07-25 12:20:36 -07:00
parent 6bf73092df
commit da629c05d8
24 changed files with 506 additions and 54 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# Check if BLDR_DIR is set
if [[ -z "$BLDR_DIR" ]]; then
echo "Error: BLDR_DIR is not set. Please ensure it points to a valid directory."
exit 1
fi
# Define the path to the docker-compose.yml file
compose_file="$BLDR_DIR/docker-compose.yml"
# Check if the docker-compose.yml file exists
if [[ ! -f "$compose_file" ]]; then
echo "Error: No docker-compose.yml file found in $BLDR_DIR"
exit 1
fi
# Read the contents of the docker-compose.yml file into BLDR_OLD_DCF variable
BLDR_OLD_DCF=$(<"$compose_file")