Download
压缩包
Apache Doris - Download | Easily deploy Doris anywhere - Apache Doris
cd /root/doris/
wget https://apache-doris-releases.oss-accelerate.aliyuncs.com/apache-doris-2.1.7-bin-x64.tar.gz
tar -xvf apache-doris-2.1.7-bin-x64.tar.gz
github 源码
cd /root/doris/git/
下载源码:
git clone https://github.com/apache/doris.git
开始制作镜像
准备基础镜像
提前下载
selectdb/base:latest
docker pull docker.m.daocloud.io/selectdb/base:latest
下载后推入自己的私有仓库
FE镜像
cd /root/doris/git/doris/docker/runtime/fe
cp Dockerfile Dockerfile_bak
vi Dockerfile
修改
FROM 你的私有仓库/selectdb/base:latest
ARG DORIS_VERSION="2.1.7"
借用一下解压的文件
cd /root/doris/git/doris/docker/runtime/fe/resource/amd64
mv /root/doris/apache-doris-2.1.7-bin-x64 ./
cd /root/doris/git/doris/docker/runtime/fe
docker build -t 你的私有仓库/selectdb/doris_fe:2.1.7 .
docker push 你的私有仓库/selectdb/doris_fe:2.1.7
BE镜像
借用一下解压的文件
cd /root/doris/git/doris/docker/runtime/fe/resource/amd64
mv apache-doris-2.1.7-bin-x64/ ../../../be/resource/amd64/
cd /root/doris/git/doris/docker/runtime/be
cp Dockerfile Dockerfile_bak
vi Dockerfile
修改
FROM 你的私有仓库/selectdb/base:latest
ARG DORIS_VERSION="2.1.7"
cd /root/doris/git/doris/docker/runtime/be
docker build -t 你的私有仓库/selectdb/doris_be:2.1.7 .
docker push 你的私有仓库/selectdb/doris_be:2.1.7
把解压文件还回去
cd /root/doris/git/doris/docker/runtime/be/resource/amd64
mv apache-doris-2.1.7-bin-x64/ /root/doris
相关配置信息
进入运行的容器中查看信息
docker exec -it doris-be-01 /bin/bash
root@fe-01:/opt/apache-doris# cat /etc/issue
Ubuntu 22.04.4 LTS \n \l
root@fe-01:/opt/apache-doris# java -version
openjdk version "1.8.0_352-352"
OpenJDK Runtime Environment (build 1.8.0_352-352-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
root@fe-01:/opt/apache-doris#