|
1 | 1 | FROM fedora:40
|
2 | 2 |
|
3 |
| -MAINTAINER Paul Podgorsek <[email protected]> |
| 3 | +LABEL authors Paul Podgorsek |
4 | 4 | LABEL description Robot Framework in Docker.
|
5 | 5 |
|
6 | 6 | # Set the Python dependencies' directory environment variable
|
@@ -35,7 +35,7 @@ ENV ROBOT_GID 1000
|
35 | 35 | ENV AWS_CLI_VERSION 1.33.23
|
36 | 36 | ENV AXE_SELENIUM_LIBRARY_VERSION 2.1.6
|
37 | 37 | ENV BROWSER_LIBRARY_VERSION 18.6.3
|
38 |
| -ENV CHROME_VERSION 123.0.6312.122 |
| 38 | +ENV CHROME_VERSION 126.0.6478.126 |
39 | 39 | ENV DATABASE_LIBRARY_VERSION 1.4.4
|
40 | 40 | ENV DATADRIVER_VERSION 1.11.2
|
41 | 41 | ENV DATETIMETZ_VERSION 1.0.6
|
@@ -77,28 +77,10 @@ RUN dnf upgrade -y --refresh \
|
77 | 77 | xorg-x11-server-Xvfb-${XVFB_VERSION}* \
|
78 | 78 | && dnf clean all
|
79 | 79 |
|
80 |
| -# Install Chrome for Testing with dependencies |
81 |
| -RUN dnf install -y \ |
82 |
| - zip \ |
83 |
| - |
84 |
| - # Exclude bash dependency to avoid conflicts |
85 |
| - && dnf deplist https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | \ |
86 |
| - grep provider | grep -v "bash" | \ |
87 |
| - sort --unique | \ |
88 |
| - awk '{print $2}' | \ |
89 |
| - xargs dnf install --best --allowerasing --skip-broken -y \ |
90 |
| - && wget -q "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip" \ |
91 |
| - && wget -q "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chromedriver-linux64.zip" \ |
92 |
| - && unzip chrome-linux64.zip \ |
93 |
| - && unzip chromedriver-linux64.zip \ |
94 |
| - && mkdir -p /opt/chrome-for-testing/ \ |
95 |
| - && mv chrome-linux64 /opt/chrome-for-testing \ |
96 |
| - && mv chromedriver-linux64 /opt/chrome-for-testing \ |
97 |
| - && rm chrome-linux64.zip chromedriver-linux64.zip \ |
98 |
| - |
99 |
| - && dnf remove -y \ |
100 |
| - zip \ |
101 |
| - && dnf clean all |
| 80 | +# Install Chrome for Testing |
| 81 | +# https://developer.chrome.com/blog/chrome-for-testing/ |
| 82 | +RUN npx @puppeteer/browsers install chrome@${CHROME_VERSION} \ |
| 83 | + && npx @puppeteer/browsers install chromedriver@${CHROME_VERSION} |
102 | 84 |
|
103 | 85 | # Install Robot Framework and associated libraries
|
104 | 86 | RUN pip3 install \
|
@@ -137,12 +119,10 @@ RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc \
|
137 | 119 | && dnf install -y \
|
138 | 120 | microsoft-edge-stable-${MICROSOFT_EDGE_VERSION} \
|
139 | 121 | zip \
|
140 |
| - |
141 | 122 | && wget -q "https://msedgedriver.azureedge.net/${MICROSOFT_EDGE_VERSION}/edgedriver_linux64.zip" \
|
142 | 123 | && unzip edgedriver_linux64.zip -d edge \
|
143 | 124 | && mv edge/msedgedriver /opt/robotframework/drivers/msedgedriver \
|
144 | 125 | && rm -Rf edgedriver_linux64.zip edge/ \
|
145 |
| - |
146 | 126 | # IMPORTANT: don't remove the wget package because it's a dependency of Microsoft Edge
|
147 | 127 | && dnf remove -y \
|
148 | 128 | zip \
|
|
0 commit comments