Skip to content

Smith-Cruise/StarRocks-Docker-Dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Logo

StarRocks Docker Dev

Setup your StarRocks development just in one docker container!

Features

  • Built-in thirdparty, you don't need to compile it by yourself
  • Use LLVM-15 to compile and link.
  • Built-in GDB, GDB Server module, support BE debug operation
  • Built-in tmux, mysql-client[TODO]

Usage

  1. Pull Docker image: sudo docker pull d87904488/starrocks-docker-dev:latest .

  2. Run container

sudo docker run -it -p 2222:2222 \
  --privileged \
  --cap-add SYS_PTRACE \
  -v ~/.m2:/root/.m2 \
  -v /home/smith/starrocks:/root/starrocks \
  --name smith-dev \
  -d d87904488/starrocks-docker-dev:latest

Notice: You should mount .m2 and source code folder. Otherwise your code and jar will not be persisted.

--privileged --cap-add SYS_PTRACE is necessary for GDB.

  1. Enjoy it, you can use ssh to connect container: sudo ssh root@localhost -p 2222. Default password is xxx.

FAQ

How to development?

You can use VS Code Remote Development, JetBrains Gateway, Clion, IDEA or VIM.

Some header/class not found?

You need generate to Thrift and Protobuf by yourself. The simplest way is that you run command sh build.sh in container first, then copy gensrc from container to local directory.

How to development with other components?

Maybe you need to development with Hive, Hadoop, ElasticSearch and ..., you can use docker network to setup network easily!

看不懂英文?

https://www.inlighting.org/archives/setup-starrocks-development

About

One-click StarRocks Docker development environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published