mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
added builder script
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user