-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Feature] Runtime docker image #9426
Comments
After I tried, doris is running successfully in docker-compose, https://github.com/myfjdthink/doris-docker-compose hope it helps you |
|
Any updation about this? |
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"]
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"]
|
Search before asking
Description
I'm asking for a runtime Doris image, mostly for testing purpose.
Before requesting, I found a https://hub.docker.com/r/apachedoris/doris-dev by searching on Docker Hub, it's for dev not runtime.
Use case
Mostly for testing purpose.
For example, the doris-spark-connector requires user setup doris locally before running test, it's not friendly, and can not be verified by CI.
https://github.com/apache/incubator-doris-spark-connector/blob/094d76f84d2761ff18dfbbe5118539ba5f5cd142/spark-doris-connector/src/test/scala/org/apache/doris/spark/sql/TestSparkConnector.scala#L25-L35
This is a integration testing demo of Spark ClickHouse connector, which leverage Testcontainers to run test with ClickHouse single node and cluster w/o user pre-setup ClickHouse but only have Docker and Docker Compose installed.
https://github.com/housepower/spark-clickhouse-connector/tree/master/clickhouse-core/src/testFixtures/scala/xenon/clickhouse/base
Related issues
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: