-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to ruby 2.7, change node install to workaround legacy OS issue…
…s, remove chromedriver due to legacy os issues, update postgres version
- Loading branch information
Showing
9 changed files
with
244 additions
and
215 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 |
---|---|---|
@@ -1,32 +1,36 @@ | ||
FROM ruby:2.5.1 | ||
FROM ruby:2.7.2 | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | ||
apt-get update && \ | ||
RUN wget https://dl.yarnpkg.com/debian/pubkey.gpg | ||
RUN curl https://deb.nodesource.com/setup_14.x | bash | ||
RUN cat pubkey.gpg | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
RUN apt-get update && \ | ||
apt-get install -qq -y build-essential libpq-dev \ | ||
postgresql-client nodejs yarn \ | ||
wget xvfb unzip && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV BUNDLER_VERSION='1.17.3' | ||
RUN gem install bundler:1.17.3 | ||
# remove pubkey | ||
RUN rm pubkey.gpg | ||
|
||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | \ | ||
apt-key add - && \ | ||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> \ | ||
/etc/apt/sources.list.d/google.list && \ | ||
apt-get update -y && \ | ||
apt-get install -y google-chrome-stable && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV BUNDLER_VERSION='2.4.13' | ||
RUN gem install bundler:2.4.13 | ||
|
||
# RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | \ | ||
# apt-key add - && \ | ||
# echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> \ | ||
# /etc/apt/sources.list.d/google.list && \ | ||
# apt-get update -y && \ | ||
# apt-get install -y google-chrome-stable && \ | ||
# rm -rf /var/lib/apt/lists/* | ||
|
||
ENV CHROMEDRIVER_VERSION 2.19 | ||
ENV CHROMEDRIVER_DIR /chromedriver | ||
# ENV CHROMEDRIVER_VERSION 2.19 | ||
# ENV CHROMEDRIVER_DIR /chromedriver | ||
|
||
RUN mkdir $CHROMEDRIVER_DIR && \ | ||
wget -q --continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" && \ | ||
unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR | ||
# RUN mkdir $CHROMEDRIVER_DIR && \ | ||
# wget -q --continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" && \ | ||
# unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR | ||
|
||
ENV PATH $CHROMEDRIVER_DIR:$PATH | ||
# ENV PATH $CHROMEDRIVER_DIR:$PATH | ||
|
||
WORKDIR /usr/src/app |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.5.1 | ||
2.7.2 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
ruby 2.5.1 | ||
ruby 2.7.2 | ||
nodejs 14.17.0 | ||
yarn 1.22.19 |
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
Oops, something went wrong.