rtomayko / sinatra-sequel

Sinatra extension that adds Sequel ORM features, database config, and database migrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing bacon dependency

Alexand opened this issue · comments

I'm using the sinatra-sequel gem inside a Docker container using this Dockerfile:

FROM ruby:2.3.0

RUN apt-get update &&\
    apt-get install -y postgresql-client

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Update bundler
RUN gem install bundler -v 1.12.5

COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
RUN bundle install --without=development

COPY . /usr/src/app

This Gemfile:

source "https://rubygems.org"

ruby "2.3.0"

# Server requirements
gem "thin", platforms: :ruby

# Project requirements
gem "rake"

# Component requirements
gem "pg"
gem "sinatra-sequel"
gem "sinatra-contrib"
gem "sequel"
gem "sequel-annotate", require: false

This Gemfile.lock:

GEM
  remote: https://rubygems.org/
  specs:
    backports (3.6.8)
    daemons (1.2.3)
    eventmachine (1.2.0.1)
    multi_json (1.12.1)
    pg (0.18.4)
    rack (1.6.4)
    rack-protection (1.5.3)
      rack
    rack-test (0.6.3)
      rack (>= 1.0)
    rake (11.1.2)
    sequel (4.34.0)
    sequel-annotate (1.0.0)
      sequel (>= 4)
    sinatra (1.4.7)
      rack (~> 1.5)
      rack-protection (~> 1.4)
      tilt (>= 1.3, < 3)
    sinatra-contrib (1.4.7)
      backports (>= 2.0)
      multi_json
      rack-protection
      rack-test
      sinatra (~> 1.4.0)
      tilt (>= 1.3, < 3)
    sinatra-sequel (0.9.0)
      sequel (>= 3.2.0)
      sinatra (>= 0.9.4)
    thin (1.7.0)
      daemons (~> 1.0, >= 1.0.9)
      eventmachine (~> 1.0, >= 1.0.4)
      rack (>= 1, < 3)
    tilt (2.0.4)

PLATFORMS
  ruby

DEPENDENCIES
  pg
  rake
  sequel
  sequel-annotate
  sinatra-contrib
  sinatra-sequel
  thin

RUBY VERSION
   ruby 2.3.0p0

BUNDLED WITH
   1.12.5

I get the following issue while running docker build -t test/test .:

Step 1 : FROM ruby:2.3.0
Step 2 : RUN apt-get update &&    apt-get install -y postgresql-client netcat
Step 3 : RUN mkdir -p /usr/src/app
Step 4 : WORKDIR /usr/src/app
Step 5 : RUN gem install bundler -v 1.12.5
Step 6 : COPY Gemfile /usr/src/app/
Removing intermediate container 77a5ece4c15e
Step 7 : COPY Gemfile.lock /usr/src/app/
Removing intermediate container b65e58a5178f
Step 8 : RUN bundle install --without=development
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Installing rake 11.1.2
Installing backports 3.6.8
Installing daemons 1.2.3
Installing eventmachine 1.2.0.1 with native extensions
Installing multi_json 1.12.1
Installing pg 0.18.4 with native extensions
Installing rack 1.6.4
Installing sequel 4.34.0
Installing tilt 2.0.4
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES
section: 'bacon'
The command '/bin/sh -c bundle install --without=development' returned a non-zero code: 20

Did this ever get resolved? Running into the same issue.

I believe this is a Bundler and/or RubyGems issue. Here's one issue I created that has some details and links to other related issues: rubygems/bundler#5044 -- I haven't been tracking closely, so it may have already been resolved.