Skip to content

Commit

Permalink
Pin urllib3<2.0 to resolve requests lib issue for CI scripts [skip ci] (
Browse files Browse the repository at this point in the history
NVIDIA#1115)

* Pin urllib3<2.0 to resolve requests lib issue for CI scripts

Signed-off-by: Peixin Li <pxli@nyu.edu>

* include action dockerfile update

Signed-off-by: Peixin Li <pxli@nyu.edu>

---------

Signed-off-by: Peixin Li <pxli@nyu.edu>
  • Loading branch information
pxLi authored May 5, 2023
1 parent e5ed9bf commit de99513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/action-helper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,6 +18,7 @@ WORKDIR /
COPY python /python
COPY entrypoint.sh .
RUN chmod -R +x /python /entrypoint.sh
RUN pip install requests
# pin urllib3<2.0 for https://github.com/psf/requests/issues/6432
RUN pip install requests "urllib3<2.0"

ENTRYPOINT ["/entrypoint.sh"]
3 changes: 2 additions & 1 deletion ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ RUN yum install -y devtoolset-${DEVTOOLSET_VERSION} rh-python38 epel-release
RUN yum install -y zlib-devel maven tar wget patch ninja-build
# require git 2.18+ to keep consistent submodule operations
RUN yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm && yum install -y git
RUN scl enable rh-python38 "pip install requests"
# pin urllib3<2.0 for https://github.com/psf/requests/issues/6432
RUN scl enable rh-python38 "pip install requests 'urllib3<2.0'"

## pre-create the CMAKE_INSTALL_PREFIX folder, set writable by any user for Jenkins
RUN mkdir /usr/local/rapids && mkdir /rapids && chmod 777 /usr/local/rapids && chmod 777 /rapids
Expand Down

0 comments on commit de99513

Please sign in to comment.