Refactor Docker setup to create additional directories for ExaBGP and update named pipe creation in start.sh. Modify Docker_RUN.md to include new log and environment variable checks, and clean up generate_config.py by removing obsolete CLI settings.
Build and Push Docker Image / build (push) Successful in 3m18s
Build and Push Docker Image / build (push) Successful in 3m18s
This commit is contained in:
@@ -29,12 +29,6 @@ process load-prefixes {{
|
||||
encoder json;
|
||||
}}
|
||||
|
||||
# Настройки CLI
|
||||
cli {{
|
||||
in /run/exabgp/exabgp.in;
|
||||
out /run/exabgp/exabgp.out;
|
||||
}}
|
||||
|
||||
# Настройки BGP
|
||||
neighbor {neighbor_ip} {{
|
||||
router-id {router_id};
|
||||
|
||||
+9
-6
@@ -19,12 +19,15 @@ if [ ! -p "/run/exabgp/exabgp.in" ] || [ ! -p "/run/exabgp/exabgp.out" ]; then
|
||||
chmod 600 /run/exabgp/exabgp.in /run/exabgp/exabgp.out
|
||||
fi
|
||||
|
||||
# Также создаем в /app/run для совместимости
|
||||
if [ ! -p "/app/run/exabgp.in" ] || [ ! -p "/app/run/exabgp.out" ]; then
|
||||
echo "Creating named pipes in /app/run for compatibility..."
|
||||
mkfifo /app/run/exabgp.in /app/run/exabgp.out
|
||||
chmod 600 /app/run/exabgp.in /app/run/exabgp.out
|
||||
fi
|
||||
# Также создаем в других стандартных местах
|
||||
for dir in /var/run/exabgp /usr/local/run/exabgp /usr/local/var/run/exabgp; do
|
||||
mkdir -p $dir
|
||||
if [ ! -p "$dir/exabgp.in" ] || [ ! -p "$dir/exabgp.out" ]; then
|
||||
echo "Creating named pipes in $dir..."
|
||||
mkfifo $dir/exabgp.in $dir/exabgp.out
|
||||
chmod 600 $dir/exabgp.in $dir/exabgp.out
|
||||
fi
|
||||
done
|
||||
|
||||
# Проверка наличия файлов с префиксами
|
||||
if [ ! -f "/app/data/prefixes.txt" ]; then
|
||||
|
||||
Reference in New Issue
Block a user