Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
李新华(Cherry Li)
autotest_wise
Commits
ddefdc69
Commit
ddefdc69
authored
1 year ago
by
GoopleZhou
Browse files
Options
Download
Email Patches
Plain Diff
Dockerfile chrome edit
parent
af114165
main
1 merge request
!1
ADC Model Training Data Rule Configuration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-2
Dockerfile
with
3 additions
and
2 deletions
+3
-2
Dockerfile
+
3
-
2
View file @
ddefdc69
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets