This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure teaspoon on chrome headless; not working
References: - jejacks0n/teaspoon#519 - jejacks0n/teaspoon#530 - codevise/pageflow#952
- Loading branch information
1 parent
d6fa3ff
commit 81ccd1c
Showing
5 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM nyulibraries/selenium_chrome_headless_ruby:2.3 | ||
|
||
ENV INSTALL_PATH /app | ||
WORKDIR $INSTALL_PATH | ||
|
||
# ENV BUILD_PACKAGES git build-essential zlib1g-dev | ||
ENV RUN_PACKAGES git | ||
RUN apt-get -y --no-install-recommends install $RUN_PACKAGES \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Add github to known_hosts | ||
RUN mkdir -p ~/.ssh | ||
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
||
# Bundle install | ||
COPY Gemfile Gemfile.lock ./ | ||
RUN bundle config --global github.https true | ||
# RUN apt-get update && apt-get -y --no-install-recommends install $BUILD_PACKAGES \ | ||
RUN gem install bundler && bundle install --jobs 20 --retry 5 | ||
# && apt-get --purge -y autoremove $BUILD_PACKAGES \ | ||
# && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# COPY spec ./spec | ||
# COPY features ./features | ||
COPY . . | ||
|
||
CMD bundle exec rake teaspoon features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters