This is an automated email from the ASF dual-hosted git repository.

zixuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bdb30c7a61 [fix][build] Fix ps command (#22451)
3bdb30c7a61 is described below

commit 3bdb30c7a6151ec97c25865fbbd0bb24613ab991
Author: Zixuan Liu <[email protected]>
AuthorDate: Tue Apr 9 14:59:13 2024 +0800

    [fix][build] Fix ps command (#22451)
    
    Signed-off-by: Zixuan Liu <[email protected]>
---
 docker/pulsar/Dockerfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index 1ca6edb2e32..f586a9dd4f9 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -97,7 +97,8 @@ RUN apk add --no-cache \
             python3 \
             py3-pip \
             gcompat \
-            ca-certificates
+            ca-certificates \
+            procps
 
 # Install GLibc compatibility library
 COPY --from=glibc /root/packages /root/packages
@@ -106,6 +107,9 @@ RUN apk add --allow-untrusted --force-overwrite 
/root/packages/glibc-*.apk
 COPY --from=jvm /opt/jvm /opt/jvm
 ENV JAVA_HOME=/opt/jvm
 
+# The default is /pulsat/bin and cannot be written.
+ENV PULSAR_PID_DIR=/pulsar/logs
+
 # Copy Python depedencies from the other stage
 COPY --from=python-deps /usr/lib/python3.11/site-packages 
/usr/lib/python3.11/site-packages
 

Reply via email to