Repository navigation
Finish the Ubuntu 26.04 image defaults #4791
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
vvbandeira
merged 6 commits into
The-OpenROAD-Project:master
from
vvbandeira:ubuntu26-cleanup
Nov 16, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0a948ca
build: finish the Ubuntu 26.04 image defaults
vvbandeira ec4fff4
fix(docker): keep mapped user settings in the mounted home
vvbandeira 4991334
docs: use built-in Slang in the local installation check
vvbandeira 5a17c12
fix(docker): align the reused account home with mounted settings
vvbandeira 0df3323
fix(docker): let the mapped user own ~/.cache
vvbandeira 6c9aeb4
Merge branch 'master' into ubuntu26-cleanup
vvbandeira 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 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,19 +1,19 @@ | ||
| # Target with dependencies and the binaries to run the complete flow | ||
| FROM openroad/flow-dev | ||
| FROM openroad/flow-ubuntu26.04-dev:latest | ||
|
|
||
| WORKDIR /OpenROAD-flow-scripts | ||
|
|
||
| # synthesis tools binaries and plugins | ||
| COPY --from=openroad/yosys /install ./tools/install/yosys | ||
| # Flow tools built for the same Ubuntu release as the runtime image. | ||
| COPY --from=openroad/flow-ubuntu26.04-tools:latest \ | ||
| /OpenROAD-flow-scripts/tools/install ./tools/install | ||
|
|
||
| # openroad binary | ||
| COPY --from=openroad/ubuntu22.04-builder-gcc \ | ||
| /OpenROAD/install/bin/openroad \ | ||
| ./tools/install/OpenROAD/bin/openroad | ||
| # OpenROAD binary and its installed libraries. | ||
| COPY --from=openroad/ubuntu26.04:latest \ | ||
| /OpenROAD/install ./tools/install/OpenROAD | ||
|
|
||
| # flow files | ||
| COPY ./env.sh . | ||
| COPY ./flow ./flow | ||
|
|
||
| # avoid issues with permissions | ||
| RUN chmod o+rw -R /OpenROAD-flow-scripts | ||
| # Allow users of the image to write flow results. | ||
| RUN chmod -R a+rwX /OpenROAD-flow-scripts/flow |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| if [[ "${1:-}" == --assert ]]; then | ||
| if [[ "${HOME}" != /home/claude-user ]]; then | ||
| echo "HOME=${HOME}, expected /home/claude-user" >&2 | ||
| exit 1 | ||
| fi | ||
| test "$(id -u)" = "$2" | ||
| account_home=$(getent passwd "$2" | cut -d: -f6) | ||
| if [[ "${account_home}" != "${HOME}" ]]; then | ||
| echo "Account home=${account_home}, HOME=${HOME}" >&2 | ||
| exit 1 | ||
| fi | ||
| test "$(cat "${HOME}/.claude/settings.json")" = fixture | ||
| echo updated > "${HOME}/.claude/settings.json" | ||
| # Bazelisk downloads Bazel into ~/.cache/bazelisk. | ||
| mkdir "${HOME}/.cache/bazelisk" | ||
| echo "UID $2 reads and writes settings through HOME" | ||
| echo "UID $2 creates ~/.cache/bazelisk next to the mounted Bazel cache" | ||
| exit 0 | ||
| fi | ||
|
|
||
| if [[ "${1:-}" == --inside ]]; then | ||
| uid=$2 | ||
| gid=$3 | ||
| if [[ "$4" == existing ]]; then | ||
| getent passwd "${uid}" > /dev/null | ||
| mkdir -p "$(getent passwd "${uid}" | cut -d: -f6)" | ||
| else | ||
| if getent passwd "${uid}" > /dev/null; then | ||
| echo "Fixture UID ${uid} must be unused" >&2 | ||
| exit 1 | ||
| fi | ||
| fi | ||
| mkdir -p /home/claude-user/.claude /etc/sudoers.d | ||
| echo fixture > /home/claude-user/.claude/settings.json | ||
| chown -R "${uid}:${gid}" /home/claude-user/.claude | ||
| # claude.sh mounts the Bazel cache here; the engine leaves .cache owned by root. | ||
| mkdir -p /home/claude-user/.cache/bazel | ||
| chown "${uid}:${gid}" /home/claude-user/.cache/bazel | ||
| export HOST_UID=${uid} HOST_GID=${gid} | ||
| exec bash /test/claude-entrypoint.sh bash /test/test-claude-entrypoint.sh --assert "${uid}" | ||
| fi | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| CONTAINER_ENGINE="${CONTAINER_ENGINE:-docker}" | ||
| TEST_IMAGE="${TEST_IMAGE:-openroad/flow-ubuntu26.04-dev:latest}" | ||
|
|
||
| for fixture in '1000 1000 existing' '2000 2000 new'; do | ||
| read -r uid gid state <<< "${fixture}" | ||
| "${CONTAINER_ENGINE}" run --rm --platform linux/amd64 \ | ||
| --network none --user 0:0 \ | ||
| --cap-drop ALL --cap-add CHOWN --cap-add SETUID --cap-add SETGID --cap-add DAC_OVERRIDE \ | ||
| --security-opt no-new-privileges \ | ||
| --cpus 2 --memory 4g --pids-limit 256 \ | ||
| --volume "${SCRIPT_DIR}:/test:ro" \ | ||
| --entrypoint bash "${TEST_IMAGE}" \ | ||
| /test/test-claude-entrypoint.sh --inside "${uid}" "${gid}" "${state}" | ||
| done |
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
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
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.