Skip to content

Commit

Permalink
Merge branch 'latest' into net
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Apr 2, 2024
2 parents 2926de5 + d4a5562 commit e0d4cef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.home/
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ RUN cd /opt && \
rm -rf "sparse"

# iproute
ARG IPROUTE2_GIT_URL="https://git.kernel.org/pub/scm/network/iproute2/iproute2.git"
ARG IPROUTE2_GIT_SHA="v6.8.0"
ENV IPROUTE2_GIT_SHA="${IPROUTE2_GIT_SHA}"
ARG IPROUTE2_GIT_URL="https://github.com/multipath-tcp/iproute2.git"
ARG IPROUTE2_GIT_SHA="591f0654c8980c6c516152b3cf19b814451f3301" # next + last time counters
RUN cd /opt && \
git clone "${IPROUTE2_GIT_URL}" iproute2 && \
cd iproute2 && \
Expand Down
14 changes: 4 additions & 10 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,11 @@ check_last_iproute() { local last curr
log_section_start "Check IPRoute2 version"

last="$(_get_last_iproute_version)"

if [[ "${IPROUTE2_GIT_SHA}" == "v"* ]]; then
curr="${IPROUTE2_GIT_SHA}"
if [ "${curr}" = "${last}" ]; then
printinfo "IPRoute2: using the last version: ${last}"
else
printerr "WARN: IPRoute2: not the last version: ${curr} < ${last}"
fi
curr="v$(ip -V | sed 's/.*iproute2-\([0-9.]\+\).*/\1/')"
if [ "${curr}" = "${last}" ]; then
printinfo "IPRoute2: using the last version: ${last}"
else
printerr "TODO: check ip -V"
exit 1
printerr "WARN: IPRoute2: not the last version: ${curr} < ${last}"
fi

log_section_end
Expand Down
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ VIRTME_INTERACTIVE=""
# host is different if worktree are used
VIRTME_GIT_DIR="$(realpath "$(git rev-parse --git-common-dir)")"

HOME_DIR="$(realpath "$(dirname "${0}")/.home")"

docker run \
-v "${PWD}:${PWD}:rw" \
-v "${VIRTME_GIT_DIR}:${VIRTME_GIT_DIR}:ro" \
${VIRTME_PACKETDRILL_PATH:+-v "${VIRTME_PACKETDRILL_PATH}:/opt/packetdrill:rw"} \
-v "${HOME_DIR}:/root" \
-w "${PWD}" \
-e "INPUT_TRACE" \
-e "INPUT_NO_BLOCK" \
Expand Down

0 comments on commit e0d4cef

Please sign in to comment.