Doris Docker quick build development environment

    • VSCode
      • Remote plugin

    VSCode replace all by using Ctrl-d

    • <!!! your user !!!>
    • <!!! your user password !!!>
    • <!!! root password !!!>
    • <!!! your git email !!!>
    • <!!! your git username !!!>

    run build command

    run image

    note!

    if you are developing on windows, mounting may cause cross-filesystem access problems, please consider setting it manually

      if you installed zsh, replace plugins in ~/.zshrc after running the container

      create directory and download doris

      1. su <your user>
      2. mkdir code && cd code

      Note:

      1. sh build.sh --clean --be --fe --ui

      it is because build-env-for-0.15.0 version image upgraded thrift(0.9 -> 0.13), so you need to use —clean command to force use new version of thrift to generate code files, otherwise it will cause incompatibilities.

      compile Doris

      manually create meta_dir metadata storage location, default value is ${DORIS_HOME}/doris-meta

      launch FE

      1. cd output/fe
      2. sh bin/start_fe.sh --daemon

      mysql-client connect

      1. mysql -h 127.0.0.1 -P 9030 -u root