starrocks/docker/dockerfiles/allin1
Kevin Cai 25e53b94d2
[Enhancement] update toolchains image tag (#23548)
* update toolchains img tag
* fix allin1-ubi JAVA_HOME path

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
2023-05-18 15:28:29 +08:00
..
README.md [Tool][Dockerfile] merge RUNs to reduce image layers (#20514) 2023-03-29 11:44:20 +08:00
allin1-ubi.Dockerfile [Enhancement] update toolchains image tag (#23548) 2023-05-18 15:28:29 +08:00
allin1-ubuntu.Dockerfile [Tool][Dockerfile] touch /.dockerenv flag file (#20567) 2023-03-29 22:23:29 +08:00
be.conf [Tool] Add ubuntu allin1 docker file (#17890) 2023-02-15 18:24:22 -08:00
fe.conf [Refactor] Set the default_replication_num to one in the docker/dockerfiles/allin1/fe.conf (#22637) 2023-04-27 14:59:36 +08:00
start_fe_be.sh [Tool] Add ubuntu allin1 docker file (#17890) 2023-02-15 18:24:22 -08:00

README.md

This docker file builds an ubuntu based all-in-one image that automatically starts then a complete Starrocks cluster stack(FE, BE and register BE to FE) at the time when container starts.

This is mainly used for developer to test starrocks locally. Please override the be.conf or fe.conf or fe.conf as you need.

Build the all in one docker image:

1) Use artifact image to package allin1 runtime container image

DOCKER_BUILDKIT=1 docker build --build-arg ARTIFACT_SOURCE=image --build-arg ARTIFACTIMAGE=<image> -f allin1-ubuntu.Dockerfile -t allin1-ubuntu:<tag> ../../../

E.g.

DOCKER_BUILDKIT=1 docker build --build-arg ARTIFACT_SOURCE=image --build-arg ARTIFACTIMAGE=ghcr.io/starrocks/starrocks/artifact-ubuntu:main -f allin1-ubuntu.Dockerfile -t allin1-ubuntu:main ../../../

2) Use locally build artifacts to package allin1 runtime container image

DOCKER_BUILDKIT=1 docker build --build-arg ARTIFACT_SOURCE=local --build-arg LOCAL_REPO_PATH=<local-repo-path> -f allin1-ubuntu.Dockerfile -t allin1-ubuntu:<tag> ../../../

E.g.

DOCKER_BUILDKIT=1 docker build --build-arg ARTIFACT_SOURCE=local --build-arg LOCAL_REPO_PATH=. -f allin1-ubuntu.Dockerfile -t allin1-ubuntu:main ../../../