markhobson / docker-maven-firefox

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

maven-{firefox,chrome}:jdk-17 yields "shell not found" error with GitLab Runner #7

Open sbklahr opened 1 year ago

sbklahr commented 1 year ago

I'm trying to use either maven-firefox:jdk-17 or maven-chrome:jdk-17 in a GitLab pipeline step like this:

.gitlab-ci.yml:

[...]
systemtest:
  stage: test
  image:
    name: markhobson/maven-firefox:jdk-17
  script:
    - mvn test -Dtest=**/*SystemTest
[...]

The step doesn't succeed:

Running with gitlab-runner 14.7.0 (98daeee0)
  on cq-sans-did GN6jKUB2
Resolving secrets 00:00
Preparing the "docker" executor 00:01
Using Docker executor with image markhobson/maven-firefox:jdk-17 ...
Pulling docker image markhobson/maven-firefox:jdk-17 ...
Using docker image sha256:091294c8d54feaeb38e1a33b4b7082d4a6904aece337a6dec5ba42ea7f166ed7 for markhobson/maven-firefox:jdk-17 with digest docker.io/markhobson/maven-firefox@sha256:76ed7feb3c40a11a2474868a7e7eef5ab4cd461fc93bef2e62e59322fbe86270 ...
Preparing environment 00:01
Running on runner-gn6jkub2-project-171-concurrent-0 via gitlabquality...
Getting source from Git repository 00:02
Fetching changes with git depth set to 50...
Checking out be727693 as refs/merge-requests/148/head...
Skipping Git submodules setup
Restoring cache
Checking cache for project-860-15-non_protected...
cache.zip is up to date                            
Successfully extracted cache
Executing "step_script" stage of the job script 00:01
Using docker image sha256:091294c8d54feaeb38e1a33b4b7082d4a6904aece337a6dec5ba42ea7f166ed7 for markhobson/maven-firefox:jdk-17 with digest docker.io/markhobson/maven-firefox@sha256:76ed7feb3c40a11a2474868a7e7eef5ab4cd461fc93bef2e62e59322fbe86270 ...
shell not found
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit code 1

The image markhobson/maven-firefox:jdk-11 works though.

markhobson commented 1 year ago

Hi, I'm not overly familiar with GitLab's Pipelines but it appears that the error here is:

shell not found

Are there any further clues as to what it's missing? Both image variants have bash so there is a shell. Another thought is that the script command isn't quoted, but if it works for jdk-11 then I presume that can't be the problem.

Can you provide a minimal project to reproduce on GitLab? I could then take a look.