|
| 1 | +FROM ruby:2.6-rc |
| 2 | + |
| 3 | +RUN apt-get update && apt-get install -y \ |
| 4 | + build-essential \ |
| 5 | + imagemagick \ |
| 6 | + libfontconfig1-dev \ |
| 7 | + libssl-dev \ |
| 8 | + libxml2-dev \ |
| 9 | + libxslt-dev \ |
| 10 | + pkg-config \ |
| 11 | + less \ |
| 12 | + wget \ |
| 13 | + unzip |
| 14 | + |
| 15 | +# Node.js |
| 16 | +RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \ |
| 17 | + && apt-get install -y nodejs |
| 18 | + |
| 19 | +# yarn |
| 20 | +# RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -\ |
| 21 | +# && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ |
| 22 | +# && apt-get update \ |
| 23 | +# && apt-get install -y yarn |
| 24 | +# |
| 25 | +# RUN wget -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
| 26 | +# && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ |
| 27 | +# && apt-get update -y \ |
| 28 | +# && apt-get -y install google-chrome-stable \ |
| 29 | +# && rm /etc/apt/sources.list.d/google-chrome.list \ |
| 30 | +# && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \ |
| 31 | +# && google-chrome --version |
| 32 | +# |
| 33 | +# RUN wget --no-check-certificate https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip \ |
| 34 | +# && unzip chromedriver_linux64.zip \ |
| 35 | +# && rm chromedriver_linux64.zip \ |
| 36 | +# && mv -f chromedriver /usr/local/share/ \ |
| 37 | +# && chmod +x /usr/local/share/chromedriver \ |
| 38 | +# && ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver \ |
| 39 | +# && chromedriver -v |
| 40 | + |
| 41 | + |
| 42 | +# ADD ./package.json /wordsearch/package.json |
| 43 | +# ADD ./yarn.lock /wordsearch/yarn.lock |
| 44 | +# RUN yarn install |
| 45 | + |
| 46 | +RUN cd /tmp |
| 47 | + |
| 48 | +ADD ./test/bin /src/test/bin |
| 49 | + |
| 50 | +RUN /src/test/bin/install-openssl.sh |
| 51 | +# RUN /src/test/bin/install-freetds.sh |
| 52 | + |
| 53 | +RUN wget http://www.freetds.org/files/stable/freetds-1.00.27.tar.gz |
| 54 | +RUN tar -xzf freetds-1.00.27.tar.gz |
| 55 | +RUN cd freetds-1.00.27 |
| 56 | +RUN ls |
| 57 | +RUN ./freetds-1.00.27/configure --prefix=/usr/local --with-tdsver=7.3 |
| 58 | +RUN make install ./freetds-1.00.27 |
| 59 | + |
| 60 | + |
| 61 | +# RUN mkdir /src |
| 62 | +WORKDIR /src |
| 63 | +ADD ./Gemfile /src/Gemfile |
| 64 | +ADD ./activerecord-sqlserver-adapter.gemspec /src/activerecord-sqlserver-adapter.gemspec |
| 65 | +ADD ./lib/active_record/connection_adapters/sqlserver/version.rb /src/lib/active_record/connection_adapters/sqlserver/version.rb |
| 66 | +ADD ./VERSION /src/VERSION |
| 67 | +RUN bundle install --jobs=7 |
0 commit comments