markhobson / docker-maven-chrome

Docker image for Java automated UI tests.
https://hub.docker.com/r/markhobson/maven-chrome/
Apache License 2.0
97 stars 81 forks source link

Support JDK 12 #12

Closed heruan closed 4 years ago

heruan commented 5 years ago

Maven docker images for JDK 12 switched from Debian to another OS and the provided Dockerfile does not work with the latest Maven image.

markhobson commented 4 years ago

Thanks for raising this issue @heruan. You're right that the base image has changed:

I've quickly tried installing Chrome on Oracle Linux with the following Dockerfile:

FROM maven:3.6.1-jdk-12

RUN echo $'\
[google-chrome]\n\
name=google-chrome\n\
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64\n\
enabled=1\n\
gpgcheck=1\n\
gpgkey=https://dl.google.com/linux/linux_signing_key.pub'\
> /etc/yum.repos.d/google-chrome.repo
RUN yum install google-chrome-stable

Unfortunately it appears to be missing the liberation-fonts package:

Error: Package: google-chrome-stable-75.0.3770.142-1.x86_64 (google-chrome)
           Requires: liberation-fonts

It's not clear to me how best to obtain this package. I see that under RHEL it can be installed using the optional repository but subscription-manager is unavailable under Oracle Linux. Any tips welcome.

markhobson commented 4 years ago

Chrome install appears to have fixed itself. New markhobson/maven-chrome:jdk-12 tag now available in Docker Hub.