Commit ddefdc69 authored by GoopleZhou's avatar GoopleZhou
Browse files

Dockerfile chrome edit

parent af114165
1 merge request!1ADC Model Training Data Rule Configuration
Showing with 3 additions and 2 deletions
+3 -2
......@@ -14,10 +14,11 @@ ARG CHROME_DRIVER_VERSION
RUN if [ -z "$CHROME_DRIVER_VERSION" ]; \
then CHROME_MAJOR_VERSION=$(google-chrome --version | sed -E "s/.* ([0-9]+)(\.[0-9]+){3}.*/\1/") \
&& NO_SUCH_KEY=$(curl -ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION} | head -n 1 | grep -oe NoSuchKey) ; \
if [ -n "$NO_SUCH_KEY" ]; then \
while [ -n "$NO_SUCH_KEY" ]; do \
echo "No Chromedriver for version $CHROME_MAJOR_VERSION. Use previous major version instead" \
&& CHROME_MAJOR_VERSION=$(expr $CHROME_MAJOR_VERSION - 1); \
fi ; \
NO_SUCH_KEY=$(curl -ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION} | head -n 1 | grep -oe NoSuchKey); \
done; \
CHROME_DRIVER_VERSION=$(wget --no-verbose -O - "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION}"); \
fi \
&& echo "Using chromedriver version: "$CHROME_DRIVER_VERSION \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment