Skip to content

Commit

Permalink
Merge pull request #31 from geethaka/docker-compose
Browse files Browse the repository at this point in the history
fix jessie eol issues
  • Loading branch information
sadleb authored May 23, 2019
2 parents 0be7766 + 2a5136c commit c4f5961
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# We currently use Ruby 1.9.3 in prod, but bundle install is failing with that in dev.
# We also can't use the newest ruby because it broke support for the syck gem in v2.2.
FROM ruby:2.1
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev

#fix for jessie repo eol issues
RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list

RUN apt-get -o Acquire::Check-Valid-Until=false update -qq && apt-get install -y build-essential libpq-dev

# The rubycas Gemfile / gemspec doesn't specify a rails version since we use Apache Passenger modrails to run it in prod.
# Need this installed in the container to run the dev version.
Expand Down

0 comments on commit c4f5961

Please sign in to comment.