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
|
||||
|
||||
# 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 "***** Sample Extends *****"
|
||||
echo "$BLDR_NEW_SE"
|
||||
Reference in New Issue
Block a user