xvfb failes to start and the tests exits with code 1
Any idea why this happens. I have checked, cannot find anyone with this issue in 2020 but this happens a lot when i do docker-compose up to run the tests in docker.
Thanks
My docker compose file has:
version: “2”
services:
katalon:
build: .
container_name: katalon
networks:
- xxx_network
environment:
base_URL: “www.google.com” – I have added this as an example.
volumes:
- .:/katalon/katalon/source
Setting entrypoint both overrides any default entrypoint set on the service’s image with the ENTRYPOINT Dockerfile instruction, and clears out any default command on the image - meaning that if there’s a CMD instruction in the Dockerfile, it is ignored
so, your command seems like is ignored, therefore the chromedriver is not updated and so on
try to remove the entrypoint line.
Its docker version 2
no, it is not, that is docker compose api version. try to run docker --version on the target machine
see here the corresponding docker engine for each compose api version:
In theory should be backward compatible, but yeah, updating to a more recent api version may unlock new features for you and will ensure the file content is properly parsed.
you have to remove the entrypoint: katalonc.sh line from the compose file (that one which shows in bold here), since you are executing a custom line via the command: apt blah blah line