-
Notifications
You must be signed in to change notification settings - Fork 280
feat(docker): add Ubuntu 26.04 (Resolute Raccoon) image #1932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+72
−4
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,55 @@ | ||
| FROM ubuntu:resolute | ||
|
|
||
| ARG DEBIAN_FRONTEND=noninteractive | ||
| ARG TZ=America/Los_Angeles | ||
| ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/java:v%version%-resolute" | ||
|
|
||
| ENV LANG=C.UTF-8 | ||
| ENV LC_ALL=C.UTF-8 | ||
|
|
||
| # === INSTALL JDK and Maven === | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y --no-install-recommends openjdk-25-jdk \ | ||
| # Install utilities required for downloading browsers | ||
| wget \ | ||
| # Install utilities required for downloading driver | ||
| unzip \ | ||
| # For the MSEdge install script | ||
| gpg && \ | ||
| rm -rf /var/lib/apt/lists/* && \ | ||
| # Create the pwuser | ||
| useradd -m -s /bin/bash pwuser | ||
|
|
||
| # Ubuntu 22.04 and earlier come with Maven 3.6.3 which fails with | ||
| # Java 25, so we install latest Maven from Apache instead. | ||
| RUN VERSION=3.9.12 && \ | ||
| wget -O - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \ | ||
| ln -s /opt/apache-maven-$VERSION/bin/mvn /usr/local/bin/ | ||
|
|
||
| ARG PW_TARGET_ARCH | ||
| ENV JAVA_HOME=/usr/lib/jvm/java-25-openjdk-${PW_TARGET_ARCH} | ||
|
|
||
| # === BAKE BROWSERS INTO IMAGE === | ||
|
|
||
| # Browsers will remain downloaded in `/ms-playwright`. | ||
| # Note: make sure to set 777 to the registry so that any user can access | ||
| # registry. | ||
|
|
||
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | ||
|
|
||
| RUN mkdir /ms-playwright && \ | ||
| mkdir /tmp/pw-java | ||
|
|
||
| COPY . /tmp/pw-java | ||
|
|
||
| RUN cd /tmp/pw-java && \ | ||
| mvn install -D skipTests --no-transfer-progress && \ | ||
| DEBIAN_FRONTEND=noninteractive mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI \ | ||
| -D exec.args="install-deps" -f playwright/pom.xml --no-transfer-progress && \ | ||
| mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI \ | ||
| -D exec.args="install" -f playwright/pom.xml --no-transfer-progress && \ | ||
| mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI \ | ||
| -D exec.args="mark-docker-image '${DOCKER_IMAGE_NAME_TEMPLATE}'" -f playwright/pom.xml --no-transfer-progress && \ | ||
| rm -rf /tmp/pw-java && \ | ||
| chmod -R 777 $PLAYWRIGHT_BROWSERS_PATH | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.