A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.starrocks.io/docs/developers/build-starrocks/Build_in_docker/ below:

Compile StarRocks with Docker | StarRocks

Compile StarRocks with Docker

This topic describes how to compile StarRocks using Docker.

Overview​

StarRocks provides development environment images for both Ubuntu 22.04 and CentOS 7.9. With the image, you can launch a Docker container and compile StarRocks in the container.

StarRocks version and DEV ENV image​

Different branches of StarRocks correspond to different development environment images provided on StarRocks Docker Hub.

Prerequisites​

Before compiling StarRocks, make sure the following requirements are satisfied:

Step 1: Download the image​

Download the development environment image by running the following command:

Docker automatically identifies the CPU architecture of your machine and pulls the corresponding image that suits your machine. The linux/amd64 images are for the x86-based CPUs, and linux/arm64 images are for the ARM-based CPUs.

Step 2: Compile StarRocks in a Docker container​

You can launch the development environment Docker container with or without the local host path mounted. We recommend you launch the container with the local host path mounted, so that you can avoid re-downloading the Java dependency during the next compilation, and you do not need to manually copy the binary files from the container to your local host.

Troubleshooting​

Q: The StarRocks BE building fails, and the following error message has been returned:

g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.

What should I do?

A: This error message indicates a lack of memory in the Docker container. You need to allocate at least 8 GB of memory resources to the container.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4