Files
docker-compose-cookbooks/_builder/extends-new.sh
T
2024-07-26 00:27:20 -07:00

19 lines
332 B
Bash

#!/bin/bash
# Define the content to write to the file
file_content=$(cat <<EOF
version: '3.4'
services:
$BLDR_APP:
extends:
file: \${COOKBOOK}/$BLDR_APP/docker-compose.yml
service: $BLDR_APP
EOF
)
# Output the content to a file
BLDR_NEW_SE="$file_content"
echo "$BLDR_NEW_SE" > ${BLDR_DIR}/sample-extends.yml