-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VL] update docker script in readme #4683
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c2c6c29
Update docker_ubuntu22.04.md
FelixYBW 2e5f0cb
Update docker_ubuntu22.04.md
FelixYBW c8d4dee
Update docker_ubuntu22.04.md
FelixYBW 208b36f
Merge branch 'main' into update-docker_ubuntu
025436a
Update docker_ubuntu22.04.md
FelixYBW 6e8ccdd
Update Velox.md
FelixYBW e5f71e3
Merge branch 'main' into update-docker_ubuntu
1492766
Update docker_ubuntu22.04.md
FelixYBW File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,14 @@ title: Docker script for Ubuntu 22.04/20.04 | |
nav_order: 6 | ||
parent: Developer Overview | ||
--- | ||
|
||
To the first build, it's suggested to build Gluten in a clean docker image. Otherwise it's easy to run into library version conflict issues. | ||
Here is a docker script we verified to build Gluten+Velox backend on Ubuntu22.04/20.04: | ||
|
||
Run on host as root user: | ||
``` | ||
docker pull ubuntu:22.04 | ||
docker run -itd --name gluten ubuntu:22.04 /bin/bash | ||
docker run -itd --network host --name gluten ubuntu:22.04 /bin/bash | ||
docker attach gluten | ||
``` | ||
|
||
|
@@ -19,11 +21,14 @@ apt-get update | |
|
||
#install gcc and libraries to build arrow | ||
apt install software-properties-common | ||
apt install maven build-essential cmake libssl-dev libre2-dev libcurl4-openssl-dev clang lldb lld libz-dev git ninja-build uuid-dev | ||
apt install maven build-essential cmake libssl-dev libre2-dev libcurl4-openssl-dev clang lldb lld libz-dev git ninja-build uuid-dev autoconf-archive curl zip unzip tar pkg-config bison libtool flex vim | ||
|
||
#velox script needs sudo to install dependency libraries | ||
apt install sudo | ||
|
||
# make sure jemalloc is uninstalled, jemalloc will be build in vcpkg, which conflicts with the default jemalloc in system | ||
apt remove jemalloc_dev jemalloc | ||
|
||
#make sure jdk8 is used. New version of jdk is not supported | ||
apt install -y openjdk-8-jdk | ||
apt install -y default-jdk | ||
|
@@ -36,20 +41,20 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata | |
dpkg --configure -a | ||
|
||
#setup proxy on necessary | ||
export http_proxy=xxxx | ||
export https_proxy=xxxx | ||
#export http_proxy=xxxx | ||
#export https_proxy=xxxx | ||
|
||
#clone gluten | ||
git clone https://github.com/oap-project/gluten.git | ||
cd gluten/ | ||
|
||
#config maven proxy | ||
#mkdir ~/.m2/ | ||
#apt install vim | ||
#vim ~/.m2/settings.xml | ||
|
||
# the script download velox & arrow and compile all dependency library automatically | ||
# To access HDFS or S3, you need to add the parameters `--enable_hdfs=ON` and `--enable_s3=ON` | ||
./dev/buildbundle-veloxbe.sh | ||
|
||
# It's suggested to build using static link, enabled by --ENABLE_VCPKG=ON | ||
# For developer, it's suggested to enable Debug info, by --BUILD_TYPE=RelWithDebInfo. Note RelWithDebInfo uses -o2, release uses -o3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
./dev/buildbundle-veloxbe.sh --ENABLE_VCPKG=ON --BUILD_TYPE=RelWithDebInfo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to use lower case for build option:
--enable_vcpkg
.