Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@ ml_metadata_workspace()

# Specify the minimum required bazel version.
load("@bazel_skylib//lib:versions.bzl", "versions")
versions.check("6.1.0")
versions.check("6.5.0")
2 changes: 1 addition & 1 deletion ml_metadata/.bazelversion
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# 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.
6.1.0
6.5.0
2 changes: 1 addition & 1 deletion ml_metadata/libmysqlclient.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ genrule(
"cd $$TMP_DIR",
"mkdir build",
"cd build",
"cmake .. -DCMAKE_BUILD_TYPE=Release $${CMAKE_ICONV_FLAG-}",
"cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/opt/rh/devtoolset-10/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-10/root/usr/bin/g++ -DCMAKE_POLICY_VERSION_MINIMUM=3.5 $${CMAKE_ICONV_FLAG-}",
"cd ..",
"cp -R ./build/* $$INSTALL_DIR",
"rm -rf $$TMP_DIR",
Expand Down
22 changes: 19 additions & 3 deletions ml_metadata/tools/docker_build/Dockerfile.manylinux2010
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,24 @@
# limitations under the License.

# Dockerfile for building a manylinux2010 MLMD wheel.
# We use manylinux2014 as it has a modern GCC.
FROM quay.io/pypa/manylinux2014_x86_64

# Install Bazel 6.5.0
RUN curl -sSL -o /usr/local/bin/bazel https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel-6.5.0-linux-x86_64 && \
chmod +x /usr/local/bin/bazel

# Install a recent version of cmake
RUN yum install -y cmake3 && \
ln -s /usr/bin/cmake3 /usr/bin/cmake

# Set up the environment
ENV BAZEL_VERSION=6.5.0
ENV BAZEL_OPTS="--host_jvm_args=-Xms2g --host_jvm_args=-Xmx2g"
# devtoolset-10 is pre-installed on the image, we just need to enable it.
ENV PATH="/opt/rh/devtoolset-10/root/usr/bin:${PATH}"
ENV LD_LIBRARY_PATH="/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:${LD_LIBRARY_PATH}"


# This docker image is essentially pypa/manylinux2010 + bazel.
FROM gcr.io/tfx-oss-public/manylinux2014-bazel:bazel-6.1.0
WORKDIR /build
CMD ["ml_metadata/tools/docker_build/build_manylinux.sh"]
CMD ["ml_metadata/tools/docker_build/build_manylinux.sh"]
Loading