Skip to content

Modernize to osrm v6, py3.13 and debian bookworm - #94

Merged
Zebreu merged 5 commits into
mainfrom
seb/modernisation
Apr 21, 2026
Merged

Zebreu merged 5 commits into
mainfrom
seb/modernisation

Conversation

@Zebreu

@Zebreu Zebreu commented Apr 19, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Medium Risk
Medium risk: this is a large tooling/build modernization (new OSRM base image, new Python/Conda, new C++/pybind build and dependency upgrades) that can break container builds or change routing/bindings behavior at runtime.

Overview
Modernizes the dkroutingtool dev container by switching to the prebuilt OSRM v6.0.0 image, upgrading Miniconda/Python to 3.13, and reworking the Docker build steps (profile locations, binding build output path, runtime LD_LIBRARY_PATH).

Updates the pybind11/C++ bindings build to a newer toolchain (CMake 3.15, C++20) and OSRM v6 linking strategy via pkg-config libosrm, including vendoring OSRM headers and building fmt from source for consistent linkage.

Refreshes Python dependencies in requirements.txt to newer versions and adds a freezelist.txt snapshot of the resulting environment.

Reviewed by Cursor Bugbot for commit c263550. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c263550. Configure here.

Comment thread dkroutingtool/Dockerfile.dev Outdated
CMD ["/opt/conda/bin/python", "src/py/main_application.py", "--local"]
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/x86_64-linux-gnu

CMD ["/opt/conda/bin/python", "/src/py/main_application.py", "--local"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMD uses wrong absolute path for main application

High Severity

The CMD was changed from the relative path src/py/main_application.py to the absolute path /src/py/main_application.py. The OSRM base image sets WORKDIR /opt, so COPY src src places files at /opt/src, not /src. The absolute path /src/py/main_application.py doesn't exist — the file is at /opt/src/py/main_application.py. The old relative path worked correctly because it resolved relative to the WORKDIR. This will cause a "file not found" error when the container starts with its default CMD.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c263550. Configure here.

https://github.com/Project-OSRM/osrm-backend.git /opt/osrm-src \
&& cp -r /opt/osrm-src/include/* /opt/bindings/include/ \
&& cp -r /opt/osrm-src/third_party/fmt/include/fmt /opt/bindings/include/fmt \
&& rm -rf /opt/osrm-src

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSRM headers cloned from unpinned master branch

Medium Severity

The git clone of osrm-backend for build headers doesn't specify a branch or tag, so it pulls the default master branch. The headers then overwrite the v6.0.0 headers from the base image (copied on line 56). This creates a mismatch between master branch headers and the v6.0.0 runtime libraries, risking ABI incompatibilities or compilation failures as master diverges from v6.0.0. Adding -b v6.0.0 would ensure header/library consistency.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c263550. Configure here.

@cursor

cursor Bot commented Apr 20, 2026

Copy link
Copy Markdown

You have used all of your free Bugbot PR reviews.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@cursor

cursor Bot commented Apr 20, 2026

Copy link
Copy Markdown

You have used all of your free Bugbot PR reviews.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@cursor

cursor Bot commented Apr 20, 2026

Copy link
Copy Markdown

You have used all of your free Bugbot PR reviews.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@cursor

cursor Bot commented Apr 21, 2026

Copy link
Copy Markdown

You have used all of your free Bugbot PR reviews.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@Zebreu
Zebreu merged commit 0e27612 into main Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant