Skip to content

Commit

Permalink
fix(pingcap/*docs*): fix pip3 install issue (#2961)
Browse files Browse the repository at this point in the history
Maybe company firewall has forbidden the hosts.


Ref:
https://jhooq.com/pip-install-connection-error/#1-root-cause-of-the-problem

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed May 11, 2024
1 parent 303ece9 commit 671fb03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ pipeline {
]){
// TODO: pre-install python3 packages(boto3, awscli) in the docker image
sh label: 'Build pdf', script: """#!/usr/bin/env bash
sudo pip3 install boto3
sudo pip3 install awscli
sudo pip3 install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org boto3 awscli
printf "%s\n" ${AWS_ACCESS_KEY} ${AWS_SECRET_KEY} ${AWS_REGION} "json" | aws configure
find -name '*.md' | xargs -d '\n' grep -P '\t' && exit 1
python3 scripts/merge_by_toc.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ pipeline {
]){
// TODO: pre-install python3 packages(boto3, awscli) in the docker image
sh label: 'Build pdf', script: """#!/usr/bin/env bash
sudo pip3 install boto3
sudo pip3 install awscli
sudo pip3 install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org boto3 awscli
printf "%s\n" ${AWS_ACCESS_KEY} ${AWS_SECRET_KEY} ${AWS_REGION} "json" | aws configure
grep -RP '\t' * | tee | grep '.md' && exit 1; echo ok
python3 scripts/merge_by_toc.py en/; python3 scripts/merge_by_toc.py zh/;
Expand Down
3 changes: 1 addition & 2 deletions pipelines/pingcap/docs/latest/merged_update_docs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ pipeline {
]){
// TODO: pre-install python3 packages(boto3, awscli) in the docker image
sh label: 'Build pdf', script: """#!/usr/bin/env bash
sudo pip3 install boto3
sudo pip3 install awscli
sudo pip3 install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org boto3 awscli
printf "%s\n" ${AWS_ACCESS_KEY} ${AWS_SECRET_KEY} ${AWS_REGION} "json" | aws configure
find -name '*.md' | xargs -d '\n' grep -P '\t' && exit 1
python3 scripts/merge_by_toc.py
Expand Down

0 comments on commit 671fb03

Please sign in to comment.