Open MichaelVanhoutte1 opened 1 year ago
There was a bad commit in 6.1.4 -- does this work for you in 6.1.3?
@MichaelVanhoutte1 👆
@garris I've switched it to 6.1.3 but it still doesn't work. I've even forked the repo and manually added the setting in there and that didn't change anything either. Any clue as to what this might be?
There is a sanity check in the docs -- installs a fresh backstop and runs a test.
mkdir backstopSanityTest; cd backstopSanityTest; npm install backstopjs; ./node_modules/.bin/backstop init; ./node_modules/.bin/backstop test
Maybe just try to use this locally on your computer. If backstop successfully runs then just create a simple docker image and run that in your container. This might help narrow down what is going on. I am not a container expert so I don't have any fancy advice other than just try to keep scoping the problem down till you isolate the blocker.
Also: I am not sure the issue is about passing engine options -- haven't had a chance to confirm this yet.
I also don't think the issue is just about this. I've been diving deeper into it and have passed the engine options directly to the engine or even directly to the instance of chromium. This gave me a new error but didn't fix my problem. I do believe I'll just have to try to scope the issue here and see where the problem truly lies. I'll definitely try out your advice though. Thanks already!
I'm trying to run headless chrome in an Alpine docker container to run tests with BackstopJS. I'm giving the --no-sandbox and '--disable-setuid-sandbox' arguments to puppeteer but it's still giving me this error when running from root:
Running as root without --no-sandbox is not supported.
or when running as non-root user:
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
I'm not sure what i could be doing wrong since I'm giving the correct arguments to my backstopJS config.
BackstopJS config:
Dockerfile: