23 lines
415 B
Bash
Executable File
23 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Collect exclusions passed as arguments
|
|
exclusions=("$@")
|
|
|
|
for dir in /docker/*/
|
|
do
|
|
# Get the base folder name from path
|
|
folder=$(basename "$dir")
|
|
|
|
# Skip if folder is in the exclusions array
|
|
if [[ " ${exclusions[@]} " =~ " $folder " ]]; then
|
|
continue
|
|
fi
|
|
|
|
cd "$dir" || {
|
|
echo "Failed to enter directory: $dir"
|
|
continue
|
|
}
|
|
|
|
docker compose up
|
|
done
|