#chrome driver 下载地址
https://getwebdriver.com/chromedriver
#chrome brower下载地址
https://googlechromelabs.github.io/chrome-for-testing/
centos 安装的dockerFile的部分命令:
#安装browser
wget https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-124.0.6367.91-1.x86_64.rpm &&
yum localinstall -y ./google-chrome-stable-124.0.6367.91-1.x86_64.rpm &&
rm -f ./google-chrome-stable-124.0.6367.91-1.x86_64.rpm &&
#安装chrome driver
wget https://storage.googleapis.com/chrome-for-testing-public/124.0.6367.91/linux64/chromedriver-linux64.zip &&
unzip chromedriver-linux64.zip &&
mv -f chromedriver-linux64 /usr/bin/ &&
chmod +x /usr/bin/chromedriver-linux64/ &&
cp /usr/bin/chromedriver-linux64/chromedriver /usr/bin/ && ]
#安装openssl 1.1.1K
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz &&
tar zxvf openssl-1.1.1k.tar.gz &&
cd openssl-1.1.1k/ &&
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib &&
make &&
make install &&
ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl &&
echo “/usr/local/openssl/lib” > /etc/ld.so.conf.d/openssl.conf &&
ldconfig