markhobson / docker-maven-chrome

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

Some reason jdk8 still takes default java 20 #46

Closed vijayila1980 closed 1 year ago

vijayila1980 commented 1 year ago

Hello... I am new to this community, I just started using concourse. unfortunately we have very old code for selenium tests, some reason we could not find the compatible cucumber versions for java 19 / 20. So though of using below. Though I I set the tags as jdk-8, still I see default its taking java 20.

logs: openjdk 20 2023-03-21 OpenJDK Runtime Environment Temurin-20+36 (build 20+36) OpenJDK 64-Bit Server VM Temurin-20+36 (build 20+36, mixed mode, sharing)

name: selenium-e2e-smoke plan:

Please suggest am I doing anything wrong here.

vijayila1980 commented 1 year ago

I tried to change the image name to

then I see below error:

version is missing from previous step

markhobson commented 1 year ago

Hi, sorry for the delayed reply. I'm not familiar with Concourse CI, but the Docker image markhobson/maven-chrome:jdk-8 does indeed contain Java 8:

$ docker run --rm -it markhobson/maven-chrome:jdk-8 java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b09)
OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b09, mixed mode)

I'd guess that you have a Concourse configuration problem.

vijayila1980 commented 1 year ago

Thank you, I just created a custom Image. its working now.. thanks again.