Skip to content

chore: remove R support from Docker images for license compliance - #4385

Merged
kunwp1 merged 2 commits into
apache:mainfrom
bobbai00:chore/docker-image-compliance
Apr 15, 2026
Merged

kunwp1 merged 2 commits into
apache:mainfrom
bobbai00:chore/docker-image-compliance

Conversation

@bobbai00

@bobbai00 bobbai00 commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Remove R support from computing-unit-master and computing-unit-worker Docker images. R itself is GPLv2, and its install chain required gnupg/dirmngr/software-properties-common (GPLv3/v2) — all ASF Category X. Also drops unused git and unzip from the runtime stage (JGit reads .git directly; no git CLI needed).

R UDF Scala/Python/frontend code is left intact. executor_manager.py already raises a clear ImportError when the optional texera-rudf plugin is missing, so users who need R can build their own image on top.

Any related issues, documentation, discussions?

Part of #4371. Closes #4392

How was this PR tested?

Images built locally without R. Non-R services are untouched.

Was this PR authored or co-authored using generative AI tooling?

Co-authored with: Claude Code (claude-opus-4-6)

R is GPLv2 (ASF Category X) and its install chain also required
gnupg/dirmngr/software-properties-common (GPLv3/v2, Category X).
Removed from computing-unit-master and computing-unit-worker runtime
stages along with the WITH_R_SUPPORT build arg, CI input, and
build-images.sh flag.

Also dropped unused runtime packages (git, unzip) that were only
present because of the R setup chain; git CLI is not invoked at
runtime (JGit reads .git directly).

R UDF operator code and the frontend editor are left intact; the
Python executor already raises a clear ImportError when the
optional texera-rudf plugin is not installed, so users who need R
can build their own image with R layered on top.

Part of apache#4371.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@github-actions github-actions Bot added ci changes related to CI infra labels Apr 14, 2026
@chenlica
chenlica requested a review from kunwp1 April 15, 2026 06:27
@chenlica

Copy link
Copy Markdown
Contributor

@kunwp1 Please review it.

@bobbai00 bobbai00 self-assigned this Apr 15, 2026

@kunwp1 kunwp1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@kunwp1
kunwp1 merged commit ec02509 into apache:main Apr 15, 2026
11 checks passed
bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 18, 2026
…ache#4385)

### What changes were proposed in this PR?

Remove R support from `computing-unit-master` and
`computing-unit-worker` Docker images. R itself is GPLv2, and its
install chain required `gnupg`/`dirmngr`/`software-properties-common`
(GPLv3/v2) — all ASF Category X. Also drops unused `git` and `unzip`
from the runtime stage (JGit reads `.git` directly; no git CLI needed).

R UDF Scala/Python/frontend code is left intact. `executor_manager.py`
already raises a clear ImportError when the optional `texera-rudf`
plugin is missing, so users who need R can build their own image on top.

### Any related issues, documentation, discussions?

Part of apache#4371.

### How was this PR tested?

Images built locally without R. Non-R services are untouched.

### Was this PR authored or co-authored using generative AI tooling?

Co-authored with: Claude Code (claude-opus-4-6)

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: Chen Li <[email protected]>
bobbai00 added a commit to bobbai00/texera that referenced this pull request Apr 26, 2026
LICENSE-binary now lists each Python package as `<name>==<version>` and
each npm package as `<name>@<version>`, mirroring the per-jar format
already used for the JVM section. Version drift is surfaced by CI as
ADDED/STALE entries in any of the three ecosystems.

Sources of truth (all native package-manager output):

  - npm: a license-webpack-plugin instance registered in
    frontend/custom-webpack.config.js writes
    frontend/dist/3rdpartylicenses.json with {name, version, license}
    per bundled package — bundle-scoped (matches what ships in the
    texera-web-application Docker image), not node_modules-scoped.

  - python: `pip-licenses --format=csv` after `pip install -r ...`.

The check-binary-licenses workflow:

  - Replaces the old 3rdpartylicenses.txt consumer with the new JSON
    consumer.
  - Adds frontend/custom-webpack.config.js to its path-trigger list.
  - Tells pip-licenses to also ignore prettytable/wcwidth (pip-licenses's
    own runtime deps, not bundled).

Drive-by: adds `[email protected]` to LICENSE-binary's MIT npm sub-section. It is
the embedded Microsoft VS Code R-language extension shipped inside
@codingame/monaco-vscode-r-default-extension's resources/, alongside the
already-listed `java`, `python`, and `theme-defaults` siblings. Missing
from the original audit because R was scrubbed from Docker images
(PR apache#4385) but the Monaco R-syntax extension is still consumed by the
frontend.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…ache#4385)

### What changes were proposed in this PR?

Remove R support from `computing-unit-master` and
`computing-unit-worker` Docker images. R itself is GPLv2, and its
install chain required `gnupg`/`dirmngr`/`software-properties-common`
(GPLv3/v2) — all ASF Category X. Also drops unused `git` and `unzip`
from the runtime stage (JGit reads `.git` directly; no git CLI needed).

R UDF Scala/Python/frontend code is left intact. `executor_manager.py`
already raises a clear ImportError when the optional `texera-rudf`
plugin is missing, so users who need R can build their own image on top.

### Any related issues, documentation, discussions?

Part of apache#4371.

### How was this PR tested?

Images built locally without R. Non-R services are untouched.

### Was this PR authored or co-authored using generative AI tooling?

Co-authored with: Claude Code (claude-opus-4-6)

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Co-authored-by: Chen Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove R flags and related libraries from Dockerfiles of computing-unit-master.dockerfile and computing-unit-worker.dockerfile

3 participants