You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install chromedriver on Github actions, but getting:
Run nanasess/setup-chromedriver@master
with:
chromedriver-version: 88.0.4324.96
/usr/bin/docker exec 09fd831c857ab493aa5bdd18081d4d0f2275269062204f74c4f050c7276a208e sh -c "cat /etc/*release | grep ^ID"
##setup chromedriver
/__w/_actions/nanasess/setup-chromedriver/master/lib/setup-chromedriver.sh 88.0.4324.96 linux64
/__w/_actions/nanasess/setup-chromedriver/master/lib/setup-chromedriver.sh: line 11: sudo: command not found
Error: The process '/__w/_actions/nanasess/setup-chromedriver/master/lib/setup-chromedriver.sh' failed with exit code 127
Our workflow looks like this:
name: Reviewon:
pull_request:
jobs:
review:
runs-on: ubuntu-latesttimeout-minutes: 60container:
image: elixir:1.12.1-slimservices:
postgis:
image: mdillon/postgis:11ports:
- 5432:5432env:
POSTGRES_USER: postgresPOSTGRES_PASSWORD: postgresPOSTGRES_HOST: "/"steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@masterwith:
# Optional: do not specify to match Chrome's versionchromedriver-version: '88.0.4324.96'
@marcandre Welcome to setup-chromedriver, thanks for the detailed issue.
The elixir-slim docker image does not seem to include sudo.
Until setup-chromedriver is supported, how about adding step like this?
Activity
nanasess commentedon Aug 26, 2021
@marcandre Welcome to setup-chromedriver, thanks for the detailed issue.
The elixir-slim docker image does not seem to include sudo.
Until setup-chromedriver is supported, how about adding step like this?
marcandre commentedon Aug 26, 2021
Wow, this shows I n00b I am with devops 🤯
I added
run: apt-get update && apt-get install -y sudoand that got thesudoissue fixed 🎉Thanks
marcandre commentedon Aug 26, 2021
Oh, now it complains about not finding
google-chrome😢.That's not part of this setup script?
nanasess commentedon Aug 27, 2021
@marcandre Sorry, Installing google-chrome is also not yet supported.
Please try adding
google-chrome-stableto theapt-get install -ycommand.We plan to support the installation along with sudo.
marcandre commentedon Aug 27, 2021
You're fabulous, thank you ❤️
Anyone reading this for elixir: do not use the
-slimversions of images, as other packages are missing...feat(ci): コンテナ互換テストを常設 PR ゲート化 + README 追記
Merge pull request #453 from nanasess/test/container-compatibility