-
Notifications
You must be signed in to change notification settings - Fork 262
upgrade container based documentation build environment. #862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SteveMacenski
merged 1 commit into
ros-navigation:master
from
fujitatomoya:upgrade-container-build-env
Feb 9, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,49 @@ | ||
| FROM ubuntu:focal | ||
|
fujitatomoya marked this conversation as resolved.
|
||
| # This dockerfile is for building the Navigation2 documentation. | ||
| # | ||
| # To build the image (from the root of the repository): | ||
| # $ docker build -f Dockerfile --build-arg user=$(id -un) --build-arg uid=$(id -u) -t nav2_docs . | ||
| # | ||
| # To use the image to build the docs: | ||
| # $ docker run --rm -v $(pwd):/docs nav2_docs make html | ||
| # | ||
| # To run autobuild (watches for changes and rebuilds automatically): | ||
| # $ docker run --init --rm -it -v $(pwd):/docs -p 8000:8000 nav2_docs make autobuild | ||
| # Then browse to http://127.0.0.1:8000 | ||
| # Use Ctrl+C to stop (--init flag enables proper signal handling) | ||
| # | ||
| # The built documentation will be in _build/html/ | ||
|
|
||
| ARG DEBIAN_FRONTEND=noninteractive | ||
| RUN apt update && \ | ||
| apt install -y \ | ||
| FROM ubuntu:noble | ||
|
|
||
| ARG user=nav2doc | ||
| ARG uid=1000 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
| ENV SHELL=/bin/bash | ||
|
|
||
| # Delete user if it exists in container (e.g Ubuntu Noble: ubuntu) | ||
| RUN if id -u $uid ; then userdel `id -un $uid` ; fi | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install --no-install-recommends -y \ | ||
| doxygen \ | ||
| git \ | ||
| graphviz \ | ||
| make \ | ||
| openjdk-8-jre \ | ||
| openssh-server \ | ||
| python3-pip \ | ||
| ttf-dejavu | ||
| fonts-dejavu && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN useradd -u $uid -m $user | ||
|
|
||
| ENV HOME=/home/$user | ||
| ENV PATH="$HOME/.local/bin:$PATH" | ||
|
|
||
| USER $user | ||
|
|
||
| COPY requirements.txt ./ | ||
| RUN pip3 install -r requirements.txt | ||
| RUN pip3 install --no-warn-script-location --user --break-system-packages -r requirements.txt | ||
|
fujitatomoya marked this conversation as resolved.
|
||
|
|
||
| WORKDIR /docs | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.