Skip to content

Commit

Permalink
Update python and add support for EURO-IX-F import
Browse files Browse the repository at this point in the history
  • Loading branch information
dal00 committed Jun 30, 2024
1 parent cb70637 commit 6115c7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_image="python:3.11"
ARG base_image="python:3.12"

FROM ${base_image}

Expand All @@ -8,7 +8,7 @@ WORKDIR /arouteserver
RUN mkdir /bgpq4 && \
cd /bgpq4 && \
git clone https://github.com/bgp/bgpq4.git ./ && \
git checkout tags/1.4 && \
git checkout tags/1.12 && \
./bootstrap && \
./configure && \
make && \
Expand Down
10 changes: 10 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ LOCAL_PREFIXES="${LOCAL_PREFIXES}"
IP_VER="${IP_VER}"
LOCAL_FILES="${LOCAL_FILES}"
LOCAL_FILES_DIR="${LOCAL_FILES_DIR}"
EURO_IX_URL="${EURO_IX_URL}"
EURO_IX_IXP_ID="${EURO_IX_IXP_ID}"

CLIENTS_FILE_PATH="/root/clients.yml"
OUTPUT_DIR="/root/arouteserver_configs"
Expand Down Expand Up @@ -83,6 +85,14 @@ if [[ -z "${VERSION}" ]]; then
error_envvar_not_set "VERSION"
fi

if [[ -n "${EURO_IX_URL}" ]]; then

echo ""
echo "Generating clients.yaml from EURO IX-F"
echo ""
arouteserver clients-from-euroix -o "${CLIENTS_FILE_PATH}" --url "${EURO_IX_URL}" "${EURO_IX_IXP_ID}"
fi

if [[ ! -e "${CLIENTS_FILE_PATH}" ]]; then
error "Couldn't find the file ${CLIENTS_FILE_PATH} on the container.\n
Please mount the local file where the list of clients is defined using '-v PATH_OF_CLIENTS_FILE_ON_THE_HOST:${CLIENTS_FILE_PATH}:ro' argument."
Expand Down

0 comments on commit 6115c7c

Please sign in to comment.