Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support to MicrosoftEdge on chromium (#1202)
* Images for MicrosoftEdge with chromium was added. * Example for StandaloneEdge was added. * Documentation was fixed according to changes. * * Timeout to waiting pods was upped * Upload artifact with edge_video was added to workflows * * Timeout to waiting pods was returned back * The selecting of right driver version for edge was fixed * * Rebuild without cache to update image after fix * * Dockerfile was regenerated * * Add missed dependencies to edge targets in Makefile * * Up version * * test_video was fixed * timeout to waiting pod of selenium-chrome-node was apped in k8s-deploy-test * Update README.md * Update README.md Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
- Loading branch information
Showing
21 changed files
with
511 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED. | ||
# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE | ||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
FROM selenium/node-base:4.0.0-beta-1-prerelease-20210207 | ||
LABEL authors=SeleniumHQ | ||
|
||
USER root | ||
|
||
#============================================ | ||
# Microsoft Edge | ||
#============================================ | ||
# can specify versions by EDGE_VERSION; | ||
# e.g. microsoft-edge-dev=88.0.692.0-1 | ||
#============================================ | ||
ARG EDGE_VERSION="microsoft-edge-dev" | ||
RUN wget -q -O - https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ | ||
&& echo "deb https://packages.microsoft.com/repos/edge stable main" >> /etc/apt/sources.list.d/microsoft-edge.list \ | ||
&& apt-get update -qqy \ | ||
&& apt-get -qqy install ${EDGE_VERSION} \ | ||
&& rm /etc/apt/sources.list.d/microsoft-edge.list \ | ||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* | ||
|
||
#================================= | ||
# Edge Launch Script Wrapper | ||
#================================= | ||
COPY wrap_edge_binary /opt/bin/wrap_edge_binary | ||
RUN /opt/bin/wrap_edge_binary | ||
|
||
USER 1200 | ||
|
||
#============================================ | ||
# Edge webdriver | ||
#============================================ | ||
# can specify versions by EDGE_DRIVER_VERSION | ||
# Latest released version will be used by default | ||
#============================================ | ||
ARG EDGE_DRIVER_VERSION | ||
RUN if [ -z "$EDGE_DRIVER_VERSION" ]; \ | ||
then EDGE_MAJOR_VERSION=$(microsoft-edge --version | sed -E "s/.* ([0-9]+)(\.[0-9]+){3}.*/\1/") \ | ||
&& EDGE_DRIVER_VERSION=$(wget --no-verbose -O - "https://msedgedriver.azureedge.net/LATEST_RELEASE_${EDGE_MAJOR_VERSION}_LINUX" | tr -cd "\11\12\15\40-\176" | tr -d "\r"); \ | ||
fi \ | ||
&& echo "Using msedgedriver version: "$EDGE_DRIVER_VERSION \ | ||
&& wget --no-verbose -O /tmp/msedgedriver_linux64.zip https://msedgedriver.azureedge.net/$EDGE_DRIVER_VERSION/edgedriver_linux64.zip \ | ||
&& rm -rf /opt/selenium/msedgedriver \ | ||
&& unzip /tmp/msedgedriver_linux64.zip -d /opt/selenium \ | ||
&& rm /tmp/msedgedriver_linux64.zip \ | ||
&& mv /opt/selenium/msedgedriver /opt/selenium/msedgedriver-$EDGE_DRIVER_VERSION \ | ||
&& chmod 755 /opt/selenium/msedgedriver-$EDGE_DRIVER_VERSION \ | ||
&& sudo ln -fs /opt/selenium/msedgedriver-$EDGE_DRIVER_VERSION /usr/bin/msedgedriver |
Oops, something went wrong.