starrocks/docker/dockerfiles/toolchains
stdpain f95b952ae6
[Tool] Fix not found gcov (#60775)
Signed-off-by: stdpain <drfeng08@gmail.com>
2025-07-10 14:27:57 +08:00
..
yum-mirrorlist [Tool] fix centos7 yum repo mirrorlist (#48805) 2024-07-24 11:38:39 +08:00
README.md [Tool][Dockerfile] add ubuntu toolchains dockerfile (#20284) 2023-03-24 21:44:18 +08:00
toolchains-centos7.Dockerfile [Tool] support build maven project in batch mode (#54940) 2025-01-13 14:10:20 +08:00
toolchains-ubuntu.Dockerfile [Tool] Fix not found gcov (#60775) 2025-07-10 14:27:57 +08:00

README.md

StarRocks Development Environment Toolchains

Toolchains docker image provides a ready to use development environment to build StarRocks project from scratch, e.g., building the thirdparty first, and the fe component and be component.

Toolchains dockerfile takes a linux distribution as the base image, installs necessary development tools, such as gcc, cmake, java, maven, autoconf, automake, ccache, .... Developers can use this image to start to build StarRocks third party dependencies.

1 Build Toolchains for CentOS7

1.1 Build multiarch toolchains on CentOS7 and publish to docker hub

DOCKER_BUILDKIT=1 docker buildx build -f toolchains-centos7.Dockerfile --platform <platform_list> -t starrocks/toolchains-centos7:<tag> --push .

E.g.:

DOCKER_BUILDKIT=1 docker buildx build -f toolchains-centos7.Dockerfile --platform linux/amd64,linux/arm64 -t starrocks/toolchains-centos7:20230306 --push .

1.2 Build a single platform toolchain for CentOS7

DOCKER_BUILDKIT=1 docker build -f toolchains-centos7.Dockerfile -t starrocks/toolchains-centos7:20230306 .

2 Build Toolchains for Ubuntu

2.1 Build multiarch toolchains on Ubuntu and publish to docker hub

DOCKER_BUILDKIT=1 docker buildx build -f toolchains-ubuntu.Dockerfile --platform <platform_list> -t starrocks/toolchains-ubuntu:<tag> --push .

E.g.:

DOCKER_BUILDKIT=1 docker buildx build -f toolchains-ubuntu.Dockerfile --platform linux/amd64,linux/arm64 -t starrocks/toolchains-ubuntu:20230306 --push .

2.2 Build a single platform toolchain for Ubuntu

DOCKER_BUILDKIT=1 docker build -f toolchains-ubuntu.Dockerfile -t starrocks/toolchains-ubuntu:20230306 .