Enhance Docker setup with ExaBGP CLI support and troubleshooting steps. Added named pipes for CLI communication, updated configuration file, and included validation checks for prefixes.txt file creation.
Build and Push Docker Image / build (push) Successful in 3m10s
Build and Push Docker Image / build (push) Successful in 3m10s
This commit is contained in:
@@ -8,6 +8,14 @@ echo "Starting BGP Server..."
|
||||
|
||||
# Создание директорий если не существуют
|
||||
mkdir -p /app/logs
|
||||
mkdir -p /app/run
|
||||
|
||||
# Создание named pipes для CLI
|
||||
if [ ! -p "/app/run/exabgp.in" ] || [ ! -p "/app/run/exabgp.out" ]; then
|
||||
echo "Creating named pipes for ExaBGP CLI..."
|
||||
mkfifo /app/run/exabgp.in /app/run/exabgp.out
|
||||
chmod 600 /app/run/exabgp.in /app/run/exabgp.out
|
||||
fi
|
||||
|
||||
# Проверка наличия файлов с префиксами
|
||||
if [ ! -f "/app/data/prefixes.txt" ]; then
|
||||
|
||||
Reference in New Issue
Block a user