linghengqian commented on issue #9426:
URL: https://github.com/apache/doris/issues/9426#issuecomment-2118825746

   - After completing https://github.com/apache/shardingsphere/issues/31256 , I 
revisited the current issue but remained uncertain about the initial lack of 
progress on it. This seems to merely entail building Dockerfiles with multiple 
different download links for the same Docker image tag, from my perspective, 
involving three types of Dockerfiles: x64/linux, arm64/linux, and 
x64noavx2/linux, each separately constructing the FE and BE. Taking the 
Dockerfile for x64/linux as an example.
   - For FE, it looks like this. (not verified) Use of 
https://apache-doris-releases.oss-accelerate.aliyuncs.com/ is from the Doris 
documentation in https://doris.apache.org/download/ .
   ```dockerfile
   FROM openjdk:8u342-jdk
   
   ENV JAVA_HOME="/usr/local/openjdk-8/"
   ENV PATH="/opt/apache-doris/fe/bin:$PATH"
   
   apt-get install -y wget
   wget 
https://apache-doris-releases.oss-accelerate.aliyuncs.com/apache-doris-2.1.2-bin-x64.tar.gz
 -O /opt/apache-doris-bin.tar.gz
   
   RUN apt-get update && \
       apt-get install -y default-mysql-client && \
       apt-get clean && \
       mkdir /opt/apache-doris && \
       cd /opt && \
       mv apache-doris-bin/fe /opt/apache-doris/
   
   wget 
https://raw.githubusercontent.com/apache/doris/2.1.2-rc04/docker/runtime/fe/resource/init_fe.sh
 -O /opt/apache-doris/fe/bin/init_fe.sh
   
   RUN chmod 755 /opt/apache-doris/fe/bin/init_fe.sh
   
   ENTRYPOINT ["/opt/apache-doris/fe/bin/init_fe.sh"]
   ```
   - For BE, it looks like this. (not verified)
   ```dockerfile
   FROM openjdk:8u342-jdk
   
   ENV JAVA_HOME="/usr/local/openjdk-8/" 
   ENV PATH="/opt/apache-doris/be/bin:$PATH"
   
   apt-get install -y wget
   wget 
https://apache-doris-releases.oss-accelerate.aliyuncs.com/apache-doris-2.1.2-bin-x64.tar.gz
 -O /opt/apache-doris-bin.tar.gz
   
   RUN apt-get update && \
       apt-get install -y default-mysql-client && \
       apt-get clean && \
       mkdir /opt/apache-doris && \
       cd /opt && \
       mv apache-doris-bin/be /opt/apache-doris/
   
   wget 
https://github.com/apache/doris/blob/2.1.2-rc04/docker/runtime/be/resource/init_be.sh
 -O /opt/apache-doris/be/bin/init_be.sh
   
   RUN chmod 755 /opt/apache-doris/be/bin/init_be.sh
   
   ENTRYPOINT ["/opt/apache-doris/be/bin/init_be.sh"]
   ```
   
   - If there are no Runtime-level Docker Images available on Docker Hub or 
ghcr.io, integrating Doris for testing in other projects without pre-building 
the Docker Images would necessitate multiple downloads of binary files akin to 
`apache-doris-2.0.3-bin.tar.gz` under testcontainers-java's Java API using 
ImageFromDockerfile, thereby increasing the overhead during the test setup 
process. It's hard to say this is an intuitive way to go about it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to