Actions
Feature #191
open[Infra] Make chromedriver hoạt động trên BE Docker ( môi trường cloud )
Start date:
11/16/2023
Due date:
% Done:
0%
Estimated time:
Description
Tham khảo
- Issue #169
- https://github.com/AINNATE/backend/blob/develop/Dockerfile
RUIN ....
wget \
unzip \
libglib2.0-0 \
libnss3 \
libgconf-2-4 \
libfontconfig1 \
....
# Install Chrome WebDriver
RUN CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \
mkdir -p /opt/chromedriver-$CHROMEDRIVER_VERSION && \
curl -sS -o /tmp/chromedriver_linux64.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver-$CHROMEDRIVER_VERSION && \
rm /tmp/chromedriver_linux64.zip && \
chmod +x /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver && \
ln -fs /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver /usr/local/bin/chromedriver
# Install Google Chrome
# Tricky line because Chrome version ends with -1
RUN CHROME_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`-1 && \
wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb && \
apt update && \
apt install -y /tmp/chrome.deb && \
rm /tmp/chrome.deb
Updated by van cong tran 10 months ago
- Status changed from New to Resolved - Dev
Actions