lib/generators/templates/_apt_install.erb in dockerfile-rails-0.4.5 vs lib/generators/templates/_apt_install.erb in dockerfile-rails-0.4.6
- old
+ new
@@ -6,5 +6,15 @@
<% else -%>
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y <%= packages.join(" ") %><% if clean %> && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives<% end %>
<% end -%>
+<% if @sqlserver -%>
+ # install freetds required by tiny_tds gem
+ RUN wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.3.16.tar.gz && \
+ tar -xzf freetds-1.3.16.tar.gz && \
+ cd freetds-1.3.16 && \
+ ./configure --prefix=/usr/local --with-tdsver=7.3 && \
+ make && \
+ make install
+ <% end -%>
+
\ No newline at end of file