Commit 5b77ee69 authored by Florentin Schäfer's avatar Florentin Schäfer
Browse files

Only include chromium in maven-playwright

parent b4d47549
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@ For tests that use java, node, selenium, chromium
### Image with maven and playwright's dependencies

For projects that use maven, java 21 and playwright.  
The included versions of browser engines will only be used by the exact version of Playwright specified in [maven-playwright/pom.xml](maven-playwright/pom.xml).
Chromium is the only browser engine included and automatic browser downloads are disabled (this can be changed using the `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` env variable).
The included browser engine will most likely only work with the specific playwright version set in [maven-playwright/pom.xml](maven-playwright/pom.xml).

`registry.reset.inso-w.at/pub/docker/maven-playwright:latest`

+3 −1
Original line number Diff line number Diff line
@@ -7,5 +7,7 @@ COPY pom.xml /tmp/playwright-install/
# note: the mvn command needs a maven repo to work
RUN cd /tmp/playwright-install && mvn exec:java -e \
    -D exec.mainClass=com.microsoft.playwright.CLI \
    -D exec.args="install --with-deps" \
    -D exec.args="install --with-deps chromium" \
    --batch-mode && rm -rf /tmp/playwright-installer

ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
        <dependency>
            <groupId>com.microsoft.playwright</groupId>
            <artifactId>playwright</artifactId>
            <version>1.51.0</version>
            <version>1.52.0</version>
        </dependency>
    </dependencies>
</project>