vendredi 28 août 2020

Selenium tests fail with Docker when Code is copied

Requirements:

  1. COPY source to_destination
  2. I am using container registry. So no need to think of persistence.

I created my base dockerfile based on https://github.com/markhobson/docker-maven-chrome

Then when I do

COPY src docker_destination
RUN mvn clean test

It fails multiple interactive UI tests like login from credentials, etc. If I just use mounting using

docker run -it --rm  -v "$(pwd)":/src -w /src dockerapp:tag mvn clean test

It works.

How can I make it work with the COPY command instead of VOLUME.?

Aucun commentaire:

Enregistrer un commentaire