-
Notifications
You must be signed in to change notification settings - Fork 92
fix(docker): Include libmariadbcpp.so (required by spider_scheduler and spider_worker) in the clp-package image; Set mariadb-connector-cpp build type to Release (fixes #1410).
#1414
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
Changes from 1 commit
ef046e5
cfa71d8
f83a4b6
24db721
b19b1ec
42fba6c
99d353a
8580b7a
b345b02
7c028f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,15 +10,18 @@ RUN ./setup-scripts/install-prebuilt-packages.sh \ | |
| RUN apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
|
||
| ENV CLP_HOME="/opt/clp" | ||
| ENV PATH="${CLP_HOME}/bin:${PATH}" | ||
| ENV PATH="${CLP_HOME}/sbin:${PATH}" | ||
| ENV PYTHONPATH="${CLP_HOME}/lib/python3/site-packages" | ||
|
|
||
| USER 1000:1000 | ||
|
|
||
| COPY ./build/clp-package /opt/clp | ||
| COPY --link ./build/deps/cpp/mariadb-connector-cpp-install/lib/x86_64-linux-gnu/libmariadbcpp.so \ | ||
| /opt/clp/lib/libmariadbcpp.so | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Flatten the image | ||
| FROM scratch | ||
| COPY --from=base / / | ||
|
|
||
| ENV CLP_HOME="/opt/clp" | ||
| ENV LD_LIBRARY_PATH="${CLP_HOME}/lib" \ | ||
| PATH="${CLP_HOME}/bin:${PATH}" \ | ||
| PYTHONPATH="${CLP_HOME}/lib/python3/site-packages" | ||
| ENV PATH="${CLP_HOME}/sbin:${PATH}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consolidate ENV and avoid duplicate PATH edits Combine into one ENV to reduce layers and keep order deterministic. Optionally preserve any pre-set LD_LIBRARY_PATH. -ENV CLP_HOME="/opt/clp"
-ENV LD_LIBRARY_PATH="${CLP_HOME}/lib" \
- PATH="${CLP_HOME}/bin:${PATH}" \
- PYTHONPATH="${CLP_HOME}/lib/python3/site-packages"
-ENV PATH="${CLP_HOME}/sbin:${PATH}"
+ENV CLP_HOME=/opt/clp \
+ PATH="${CLP_HOME}/sbin:${CLP_HOME}/bin:${PATH}" \
+ PYTHONPATH="${CLP_HOME}/lib/python3/site-packages" \
+ LD_LIBRARY_PATH="${CLP_HOME}/lib:${LD_LIBRARY_PATH}"🤖 Prompt for AI Agents
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is intended to split the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 3377 @junhaoliao, thank you for the clarification! I understand now that the team has an established preference for splitting ENV directives (especially PATH modifications) into separate lines for readability, even at the cost of additional layers. This aligns with the previous discussion in #1166 and makes sense given the dependency between the ENV statements (later ones reference I'll remember this convention for future reviews of Dockerfiles in this repository. ฅ(=^・ω・^=)ฅ ✏️ Learnings added
|
||
|
|
||
| USER 1000:1000 | ||
Uh oh!
There was an error while loading. Please reload this page.