-
Notifications
You must be signed in to change notification settings - Fork 17
Simplify Velox build changes #90
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
Changes from all commits
8c768c8
44dd9ae
46b6ec5
7cf8853
c8811c0
0bc9f3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM velox-adapters-deps:centos9 | ||
| FROM ghcr.io/facebookincubator/velox-dev:adapters | ||
|
|
||
| # Build-time configuration, these may be overridden in the docker compose yaml, | ||
| # environment variables, or via the docker build command | ||
|
|
@@ -18,7 +18,6 @@ ARG SCCACHE_DISABLE_DIST=ON | |
| ENV VELOX_DEPENDENCY_SOURCE=SYSTEM \ | ||
| GTest_SOURCE=BUNDLED \ | ||
| cudf_SOURCE=BUNDLED \ | ||
| simdjson_SOURCE=BUNDLED \ | ||
|
Contributor
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. I'm wondering if this was a necessary change? Does a recent build still work without this?
Contributor
Author
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. It worked fine for me without it, both on x86 and ARM.
Contributor
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. It worked fine for me without it |
||
| faiss_SOURCE=BUNDLED \ | ||
| CUDA_VERSION=${CUDA_VERSION} \ | ||
| TREAT_WARNINGS_AS_ERRORS=${TREAT_WARNINGS_AS_ERRORS} \ | ||
|
|
@@ -48,8 +47,7 @@ ${BUILD_BASE_DIR}/${BUILD_TYPE}/_deps/rapids_logger-build:\ | |
| ${BUILD_BASE_DIR}/${BUILD_TYPE}/_deps/kvikio-build:\ | ||
| ${BUILD_BASE_DIR}/${BUILD_TYPE}/_deps/nvcomp_proprietary_binary-src/lib64" \ | ||
| ENABLE_SCCACHE=${ENABLE_SCCACHE} \ | ||
| SCCACHE_DISABLE_DIST=${SCCACHE_DISABLE_DIST} \ | ||
| CCACHE_DIR=/ccache | ||
| SCCACHE_DISABLE_DIST=${SCCACHE_DISABLE_DIST} | ||
|
|
||
| WORKDIR /workspace/velox | ||
|
|
||
|
|
@@ -94,7 +92,6 @@ COPY velox-testing/velox/docker/sccache/sccache_auth/ /sccache_auth/ | |
|
|
||
| # Build in Release mode into ${BUILD_BASE_DIR} | ||
| RUN --mount=type=bind,source=velox,target=/workspace/velox,ro \ | ||
| --mount=type=cache,target=/ccache \ | ||
| set -euxo pipefail && \ | ||
| # Configure sccache if enabled | ||
| if [ "$ENABLE_SCCACHE" = "ON" ]; then \ | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,4 @@ | ||
| services: | ||
|
Contributor
Author
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. This is a direct reversion of the change in #64 |
||
| velox-adapters-deps: | ||
| container_name: velox-adapters-deps | ||
| image: velox-adapters-deps:centos9 | ||
| build: | ||
| context: ../../.. | ||
| dockerfile: velox-testing/velox/docker/adapters_deps.dockerfile | ||
| velox-adapters-build: | ||
| container_name: velox-adapters-build | ||
| image: velox-adapters-build:latest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
| container_name="velox-adapters-deps" | ||
| compose_file="../docker/docker-compose.adapters.build.yml" | ||
| docker compose -f "${compose_file}" up "${container_name}" | ||
| docker compose -f "${compose_file}" down "${container_name}" | ||
|
|
||
| echo "Building Velox dependencies/run-time container image..." | ||
|
|
||
| pushd ../../../velox | ||
| docker compose -f docker-compose.yml --progress plain build adapters-cpp | ||
|
Contributor
Author
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. This uses Presto's own Docker recipe to build a local version of the base image. This uses our modified CUDA install script and hence the resulting local image will include
Contributor
Author
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. We also just use |
||
| popd | ||
|
|
||
| echo "Velox dependencies/run-time container image built!" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ set -e | |
| source ./config.sh | ||
| source ../../scripts/fetch_docker_image_from_s3.sh | ||
|
|
||
| IMAGE_NAME="velox-adapters-deps:centos9" | ||
| IMAGE_NAME="ghcr.io/facebookincubator/velox-dev:adapters" | ||
|
Contributor
Author
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. We just change the image name to that of the original base image instead of the intermediate image added by the now-reverted Dockerfile changes.
Contributor
Author
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. x86 and ARM versions of this image are built and ready to copy to S3. |
||
|
|
||
| ARCH=$(uname -m) | ||
| BUCKET_SUBDIR="velox-docker-images" | ||
|
|
||
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.
This is a direct reversion of the change in #64
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.
Well, it WAS a direct reversion until @mattgara landed #52 in between as well!