mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00

- add conditional proxy support - use xargs to parallelize image builds - some tweaking and notes
19 lines
522 B
Bash
Executable file
19 lines
522 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# ANSI color codes for green (OK) and red (FAIL)
|
|
GREEN='\033[0;32m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m' # No Color
|
|
|
|
# List of services to build
|
|
services="adbhoney nginx map"
|
|
#test=$(docker compose config --services)
|
|
#echo $test
|
|
|
|
# Loop through each service
|
|
echo $services | tr ' ' '\n' | xargs -I {} -P 3 bash -c '
|
|
echo "Building service: {}" && \
|
|
docker compose build {} --no-cache 2>&1 > {}.log && \
|
|
echo -e "Service {}: [\033[0;32mOK\033[0m]" || \
|
|
echo -e "Service {}: [\033[0;31mFAIL\033[0m]"
|
|
'
|