-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): Update pyvelox workflow and add new manylinux docker image (…
…#12516) Summary: Building only linux wheel for one python version and sdist for now so we can test publishing credentials. Fixes #9014 Follow up issues: - #12524 - #12525 - #12526 Pull Request resolved: #12516 Reviewed By: kgpai Differential Revision: D70644047 Pulled By: Yuhta fbshipit-source-id: 58208787d9e8c068bde9d7294911e606c6c72fa7
- Loading branch information
1 parent
15b3743
commit eb90f29
Showing
7 changed files
with
363 additions
and
27 deletions.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# Build the test and build container for presto_cpp | ||
FROM quay.io/pypa/manylinux_2_28_x86_64:latest | ||
|
||
COPY scripts/setup-helper-functions.sh / | ||
COPY scripts/setup-manylinux.sh / | ||
|
||
# Build static folly to reduce wheel size (folly.so is ~120M) | ||
ENV VELOX_BUILD_SHARED=OFF | ||
# The removal of the build dir has to happen in the same layer as the build | ||
# to minimize the image size. gh & jq are required for CI | ||
RUN mkdir build && ( cd build && bash /setup-manylinux.sh ) && rm -rf build && \ | ||
dnf install -y -q 'dnf-command(config-manager)' && \ | ||
dnf config-manager --add-repo 'https://cli.github.com/packages/rpm/gh-cli.repo' && \ | ||
dnf install -y -q gh jq && \ | ||
dnf clean all | ||
|
||
ENV CC=/opt/rh/gcc-toolset-12/root/bin/gcc \ | ||
CXX=/opt/rh/gcc-toolset-12/root/bin/g++ | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "source /opt/rh/gcc-toolset-12/enable && exec \"$@\"", "--"] | ||
CMD ["/bin/bash"] |
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
Oops, something went wrong.