Browse Source

Install geckodriver in docker_dev (#720)

* Install geckodriver in docker_dev

* Add master key to docker builds since we don't currently build and store them anywhere
pull/724/head
baarkerlounger 2 years ago committed by GitHub
parent
commit
75b46ff0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .dockerignore
  2. 8
      Dockerfile_dev

2
.dockerignore

@ -11,8 +11,6 @@ storage
public/assets
.byebug_history
config/master.key
public/packs
public/packs-test
node_modules

8
Dockerfile_dev

@ -23,6 +23,14 @@ RUN bundle install ${BUNDLE_FLAGS}
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
# Install gecko driver for Capybara tests
RUN apk add firefox
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz \
&& tar -xvzf geckodriver-v0.31.0-linux64.tar.gz \
&& rm geckodriver-v0.31.0-linux64.tar.gz \
&& chmod +x geckodriver \
&& mv geckodriver /usr/local/bin/
# Copy all files to /app (except what is defined in .dockerignore)
COPY . /app/

Loading…
Cancel
Save