Download chromedriver during container build

If it's too outdated it leads to weird failures in the test suite
because we disallow outside requests in it.
This commit is contained in:
Henne Vogelsang 2024-06-07 14:07:54 +02:00
parent 7190867f21
commit 8987808649
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
2 changed files with 6 additions and 4 deletions

View file

@ -20,7 +20,8 @@ WORKDIR /osem/
RUN bundle config set --local path 'vendor/bundle'; \
bundle install --jobs=4 --retry=3
# Install our process manager
RUN gem install foreman
# Install our process manager / update chromedriver
RUN gem install foreman; \
bundle exec bin/rails webdrivers:chromedriver:update
CMD ["foreman", "start"]