Build and run gluten and gluten-it in a portable docker container, from scratch.
Only Linux and MacOS are currently supported. Before running the scripts, make sure you have git
and docker
installed in your host machine.
git clone -b main https://github.com/zhztheplayer/gluten.git gluten # Gluten main code
git clone -b main https://github.com/zhztheplayer/gluten-te.git gluten-te # gluten-te code
export HTTP_PROXY_HOST=myproxy.example.com # in case you are behind http proxy
export HTTP_PROXY_PORT=55555 # in case you are behind http proxy
cd gluten/
../gluten-te/examples/buildhere-veloxbe.sh
git clone -b main https://github.com/zhztheplayer/gluten-te.git gluten-te
export HTTP_PROXY_HOST=myproxy.example.com # in case you are behind http proxy
export HTTP_PROXY_PORT=55555 # in case you are behind http proxy
cd gluten-te
./tpc.sh
See the config file. You can modify the file to configure gluten-te, or pass env variables during running the scripts.
cd gluten/
{PATH_TO_GLUTEN_TE}/examples/buildhere-veloxbe.sh
cd gluten/
HTTP_PROXY_HOST=myproxy.example.com \
HTTP_PROXY_PORT=55555 \
{PATH_TO_GLUTEN_TE}/examples/buildhere-veloxbe.sh
cd gluten/
# To use cmvn.sh as the containerized "mvn" alias
# For example, here we display the maven dependency tree
{PATH_TO_GLUTEN_TE}/cmvn.sh clean dependency:tree
TARGET_GLUTEN_REPO=my_repoh \
TARGET_GLUTEN_BRANCH=my_branch \
./tpc.sh
HTTP_PROXY_HOST=myproxy.example.com \
HTTP_PROXY_PORT=55555 \
./tpc.sh
Example: Create debug build for all codes, and open a GDB debugger interface during running gluten-it (Velox backend)
DEBUG_BUILD=ON \
RUN_GDB=ON \
./tpc.sh