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

jinrongtong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git


The following commit(s) were added to refs/heads/master by this push:
     new 104e55d  Fix docker file error (#84)
104e55d is described below

commit 104e55daf665322a79f9fa9464254f7c1cc8213a
Author: Dongyuan Pan <[email protected]>
AuthorDate: Fri Jul 7 10:42:58 2023 +0800

    Fix docker file error (#84)
    
    * add permission to /bin/
    
    * fix dockerfile error
    
    * install which
    
    * install which in alpine
---
 image-build/Dockerfile-alpine | 2 +-
 image-build/Dockerfile-centos | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/image-build/Dockerfile-alpine b/image-build/Dockerfile-alpine
index 74c9c63..4699866 100644
--- a/image-build/Dockerfile-alpine
+++ b/image-build/Dockerfile-alpine
@@ -67,7 +67,7 @@ EXPOSE 10909 10911 10912
 # ensure you use the same uid
 RUN addgroup --gid ${gid} ${group} \
     && adduser --uid ${uid} -G ${group} ${user} -s /bin/bash -D \
-    && apk add --no-cache bash gettext nmap-ncat openssl busybox-extras
+    && apk add --no-cache bash gettext nmap-ncat openssl busybox-extras which
 
 # Copy customized scripts
 COPY scripts/ ${ROCKETMQ_HOME}/bin/
diff --git a/image-build/Dockerfile-centos b/image-build/Dockerfile-centos
index 0f78203..ecd1f51 100644
--- a/image-build/Dockerfile-centos
+++ b/image-build/Dockerfile-centos
@@ -69,7 +69,7 @@ EXPOSE 10909 10911 10912
 RUN groupadd -g ${gid} ${group} \
     && useradd -l -u ${uid} -g ${gid} -m -s /bin/bash ${user} \
     && yum -y update \
-    && yum -y install less openssl \
+    && yum -y install less openssl which \
     && yum clean all -y && rm -rf /var/cache/yum 
 
 
@@ -86,7 +86,7 @@ COPY --from=builder --chown=${uid}:${gid} 
/tmp/rocketmq-${version}/ ${ROCKETMQ_H
 # Add ${JAVA_HOME}/lib/ext as java.ext.dirs
 RUN mv ${ROCKETMQ_HOME}/bin/runserver-customize.sh 
${ROCKETMQ_HOME}/bin/runserver.sh \
  && mv ${ROCKETMQ_HOME}/bin/runbroker-customize.sh 
${ROCKETMQ_HOME}/bin/runbroker.sh \
-# && chmod -R a+x ${ROCKETMQ_HOME}/bin/ \
+ && chmod -R a+x ${ROCKETMQ_HOME}/bin/ \
  && export JAVA_OPT=" -Duser.home=/opt" \
  && sed -i 
's/${JAVA_HOME}\/jre\/lib\/ext/${JAVA_HOME}\/jre\/lib\/ext:${JAVA_HOME}\/lib\/ext/'
 ${ROCKETMQ_HOME}/bin/tools.sh \
  && chown -R ${uid}:${gid} ${ROCKETMQ_HOME}

Reply via email to