docker/runtime/README.md
clone Doris code repo and enter the doris/docker/runtime path. your workspace should like this:
.
├── runtime
│ ├── README.md
│ ├── all-in-one
│ ├── base-image
│ ├── be
│ ├── broker
│ ├── docker-compose-demo
│ ├── doris-compose
│ ├── fe
│ ├── ms
Here we take the build of x64 (avx2) and arm64 platforms of 3.0.2 version as an example.
$ wget https://apache-doris-releases.oss-accelerate.aliyuncs.com/apache-doris-3.0.2-bin-x64.tar.gz && tar -zxvf apache-doris-3.0.2-bin-x64.tar.gz
# or
$ wget https://apache-doris-releases.oss-accelerate.aliyuncs.com/apache-doris-3.0.2-bin-arm64.tar.gz && tar -zxvf apache-doris-3.0.2-bin-arm64.tar.gz
amd64(avx2) platform:
| doris type | doris package | docker file path |
|---|---|---|
| fe | apache-doris-3.0.2-bin-x64/fe | runtime/fe/resource/amd64/apache-doris-3.0.2-bin-x64/fe |
| be | apache-doris-3.0.2-bin-x64/be | runtime/be/resource/amd64/apache-doris-3.0.2-bin-x64/be |
| ms | apache-doris-3.0.2-bin-x64/ms | runtime/ms/resource/amd64/apache-doris-3.0.2-bin-x64/ms |
| broker | apache-doris-3.0.2-bin-x64/extensions/apache_hdfs_broker | runtime/broker/resource/amd64/apache-doris-3.0.2-bin-x64/extensions/apache_hdfs_broker |
arm64 platform:
| doris type | doris package | docker file path |
|---|---|---|
| fe | apache-doris-3.0.2-bin-arm64/fe | runtime/fe/resource/arm64/apache-doris-3.0.2-bin-arm64/fe |
| be | apache-doris-3.0.2-bin-arm64/be | runtime/be/resource/arm64/apache-doris-3.0.2-bin-arm64/be |
| ms | apache-doris-3.0.2-bin-arm64/ms | runtime/ms/resource/arm64/apache-doris-3.0.2-bin-arm64/ms |
| broker | apache-doris-3.0.2-bin-arm64/extensions/apache_hdfs_broker | runtime/broker/resource/arm64/apache-doris-3.0.2-bin-arm64/extensions/apache_hdfs_broker |
NOTICE
Only after doris 3.0, the storage-computing separation mode requires the ms (meta-service) component.
NOTICE
The below images depend on the base image apache/doris:base-latest. If your environment cannot access it, you can pre-build the base image. The base image contains the basic environment for doris to run, including JDK, openssl, etc.
$ cd doris/runtime/base-image && docker build . -t doris-base:latest -f Dockerfile_base
# Adjust the base image here
FROM doris-base:latest:latest
ARG TARGETARCH
ARG DORIS_VERSION="x.x.x"
as the following commands, Docker will automatically confirm the architecture
$ cd doris/runtime/fe && docker build . -t doris.fe:3.0.2 -f Dockerfile --build-arg DORIS_VERSION=3.0.2
$ cd doris/runtime/be && docker build . -t doris.be:3.0.2 -f Dockerfile --build-arg DORIS_VERSION=3.0.2
$ cd doris/runtime/ms && docker build . -t doris.ms:3.0.2 -f Dockerfile --build-arg DORIS_VERSION=3.0.2
$ cd doris/runtime/broker && docker build . -t doris.broker:3.0.2 -f Dockerfile --build-arg DORIS_VERSION=3.0.2
2025-02-12