I got error: /bin/sh: 3: cannot create /root/.netrc: Permission denied
From searching I understand I have to change user to match the one in image. Current user in image is seluser. Can I overwrite USER in dron? I searched dron enviorements, but there was no option like that.
Actually it seems to be the other way around! I believe Drone is mounting a shared volume at /root/ as “root” user (the .netrc file is used to authenticate with GitHub). But the selenium image can’t mount it because its not started as root.
So if you could configure Selenium to start as “root” it should fix this. You could try creating a new selenium image and overwrite the user.
The Selenium image needs to start a daemon, and when you use the image in your pipeline section and you specify the commands section, it overrides the default entrypoint, which means the daemon won’t start. So this is why you want it as a service.