mirror of
https://github.com/tuxbox-neutrino/docker-buildenv.git
synced 2025-08-26 13:12:42 +02:00
Initial commit
This commit is contained in:
16
docker-compose-wrapper
Executable file
16
docker-compose-wrapper
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Path to script that will be executed before starts docker-compose
|
||||
ENV_SCRIPT="./create-env.sh"
|
||||
|
||||
# Check script
|
||||
if [ -x "$ENV_SCRIPT" ]; then
|
||||
echo "executing $ENV_SCRIPT..."
|
||||
$ENV_SCRIPT
|
||||
else
|
||||
echo "Error: $ENV_SCRIPT not found or not executable."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Execute docker-compose with all parameters an sub commannds
|
||||
docker-compose "$@"
|
Reference in New Issue
Block a user