mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
19 lines
332 B
Bash
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
|