Overview
StarRocks provides development environment images for Ubuntu (22.04 and 24.04), CentOS 7.9, and Rocky Linux 9. With the image, you can launch a Docker container and compile StarRocks in the container. Note Starting from v4.2, the development environment changes as follows:- CentOS 7 reached its End-of-Life on June 30, 2024, so its build distribution is discontinued and replaced by Rocky Linux 9. CentOS 7 images remain available only for v4.1 and earlier.
- The Ubuntu development environment is upgraded from Ubuntu 22.04 (v4.1 and earlier) to Ubuntu 24.04 (v4.2 and later). The image name
starrocks/dev-env-ubuntuis unchanged.
StarRocks version and DEV ENV image
Different branches of StarRocks correspond to different development environment images provided on StarRocks Docker Hub.-
For Ubuntu (22.04 for v4.1 and earlier, 24.04 for v4.2 and later):
-
For CentOS 7.9 (v4.1 and earlier; discontinued from v4.2):
-
For Rocky Linux 9 (v4.2 and later):
Prerequisites
Before compiling StarRocks, make sure the following requirements are satisfied:- Hardware Your machine must have at least 8 GB RAM.
-
Software
- Your machine must be running on Ubuntu 22.04 or 24.04, CentOS 7.9, or Rocky Linux 9.
- You must have Docker installed on your machine and version v20.10.10 at least.
Step 1: Download the image
Download the development environment image by running the following command: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.-
Launch the container with the local host path mounted:
-
Clone the StarRocks source code to your local host.
-
Launch the container.
-
Launch a bash shell inside the container you have launched.
-
Compile StarRocks in the container.
-
Clone the StarRocks source code to your local host.
-
Launch the container without the local host path mounted:
-
Launch the container.
-
Launch a bash shell inside the container.
-
Clone the StarRocks source code to the container.
-
Compile StarRocks in the container.
-
Launch the container.