-
Notifications
You must be signed in to change notification settings - Fork 283
Missing Gemfile.lock on upgrade to 4.4.0 #478
Comments
hmm was your bundle install successful? |
i am upgrading on my own linux box. when do i have to run bundle install? I am following the instructions on Am Montag, 20. April 2015 schrieb Charles Essien :
Die Gnade sei mit all denen, die unseren Herrn Jesu Christus lieben in |
I believe its version specific for this release, before building check this out |
When do i have to execute this commands? Before i build the docker image? 2015-04-20 15:53 GMT+02:00 Charles Essien notifications@github.com:
Die Gnade sei mit all denen, die unseren Herrn Jesu Christus lieben in |
This is a bug in the Dockerfile. Sorry. You can remove the |
@cessien I dont't understand. Is it somewhere documented how to this? @seven1m When i remove "ADD Gemfile.lock" i get the following log Sending build context to Docker daemon 6.414 MB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04
---> 5506de2b643b
Step 1 : RUN apt-get update
---> Using cache
---> c33ced8977e8
Step 2 : RUN apt-get install -y -q wget vim build-essential curl libreadline-dev libcurl4-openssl-dev nodejs git libmysqlclient-dev imagemagick mysql-client
---> Using cache
---> 72f604803c88
Step 3 : RUN apt-get clean
---> Using cache
---> 552c7c093002
Step 4 : RUN apt-get install -y software-properties-common
---> Using cache
---> 0cb7f68d651f
Step 5 : RUN apt-add-repository -y ppa:brightbox/ruby-ng
---> Using cache
---> 0cb884f895d9
Step 6 : RUN apt-get update
---> Using cache
---> d354a612d1ed
Step 7 : RUN apt-get install -y ruby2.1 ruby2.1-dev
---> Using cache
---> 39629e66dd57
Step 8 : RUN gem install bundler --no-rdoc --no-ri
---> Using cache
---> 7dd024c5f064
Step 9 : RUN adduser --gecos "" --disabled-password --home=/home/onebody onebody
---> Using cache
---> ecd6de8c12ff
Step 10 : USER onebody
---> Using cache
---> 229c8f7fa09f
Step 11 : ENV HOME /home/onebody
---> Using cache
---> 49417a3b2899
Step 12 : ENV GEM_HOME /home/onebody/.gems
---> Using cache
---> 3b3bc442d1a9
Step 13 : ENV RAILS_ENV production
---> Using cache
---> 64ae65aa143c
Step 14 : ADD .ruby-version /var/www/onebody/.ruby-version
---> Using cache
---> 3c8d46dd001e
Step 15 : ADD Gemfile /var/www/onebody/Gemfile
---> Using cache
---> bf4e337370c1
Step 16 : USER root
---> Using cache
---> 3419be915878
Step 17 : RUN chown -R onebody /var/www/onebody
---> Using cache
---> 0fd2f3e21a74
Step 18 : USER onebody
---> Using cache
---> 2afd850bcbde
Step 19 : WORKDIR /var/www/onebody
---> Using cache
---> 9c8899c1d632
Step 20 : RUN bundle install
---> Using cache
---> d46a877ffec1
Step 21 : RUN gem install thin --no-rdoc --no-ri
---> Using cache
---> 5458771670d1
Step 22 : USER root
---> Using cache
---> b01723dbdef5
Step 23 : ADD . /var/www/onebody
---> ce50a6372e0e
Removing intermediate container fa7d346f9a5f
Step 24 : RUN chown -R onebody /var/www/onebody
---> Running in 7a2f78fb6836
---> c0bd645fe8ad
Removing intermediate container 7a2f78fb6836
Step 25 : RUN echo "ALL ALL=NOPASSWD: /var/www/onebody/script/docker/chown_data" > /etc/sudoers.d/chown_data
---> Running in 7fb96e6eceff
---> 5c723f99bb5a
Removing intermediate container 7fb96e6eceff
Step 26 : RUN echo "#!/bin/bash\n\n/var/www/onebody/script/docker/server \$@" > /server && chmod +x /server
---> Running in 93e9bf5c8508
---> 36ce0a8f6e66
Removing intermediate container 93e9bf5c8508
Step 27 : RUN echo "#!/bin/bash\n\n/var/www/onebody/script/docker/console \$@" > /console && chmod +x /console
---> Running in aecfd327d304
---> 59b05052cf21
Removing intermediate container aecfd327d304
Step 28 : USER onebody
---> Running in 1987b3880c2d
---> 93b4fa0a16e8
Removing intermediate container 1987b3880c2d
Step 29 : WORKDIR /var/www/onebody
---> Running in 1dfe11352187
---> 80cd1588e4a3
Removing intermediate container 1dfe11352187
Step 30 : RUN bundle exec rake assets:precompile
---> Running in 96ac2d5205d5
/var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/resolver.rb:328:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'mysql2 (~> 0.3.17) ruby' in any of the gem sources listed in your Gemfile or installed on this machine. (Bundler::GemNotFound)
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/resolver.rb:307:in `each'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/resolver.rb:307:in `verify_gemfile_dependencies_are_found!'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/resolver.rb:199:in `start'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/resolver.rb:182:in `resolve'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/definition.rb:193:in `resolve'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/definition.rb:132:in `specs'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/definition.rb:177:in `specs_for'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/definition.rb:166:in `requested_specs'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/environment.rb:18:in `requested_specs'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/runtime.rb:13:in `setup'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler.rb:122:in `setup'
from /var/lib/gems/2.1.0/gems/bundler-1.9.4/lib/bundler/setup.rb:18:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
2015/04/20 20:31:58 The command [/bin/sh -c bundle exec rake assets:precompile] returned a non-zero code: 1 |
@metaxy thanks for trying. I'll need to play around with it myself to see what needs to be fixed. Sorry about that! |
I ran into the same issue trying to upgrade from 3.3.0 to 3.4.0. Failed at rake assets:precompile with the same error. |
So sorry guys -- been busy with family stuff. I'll try to take a look at this issue this evening. |
I wanted to try the new version of OneBody so I tried the DO Install and boum Internal Server Error from the installer. $ script/docker/bootstrap
Then
$ docker ps
$ docker images
On Digital Ocean with Ubuntu Docker 1.6.0 on 14.04 |
now @Jolg42, youre getting the error message 'Unable to find image 'onebody:latest' locally' because your docker image errored out and never finished building https://github.com/churchio/onebody/blob/master/Dockerfile#L33 then re-run the bootstrap? |
@hschin could you try adding |
@cessien thanks. now the build is successful but i get an error when i try to run the worker with
|
@hschin @Jolg42 @metaxy this should be fixed now. To upgrade, you'll need to go with the
Edit: removed the worker |
@hschin you should be be all set at the point. as of 3.4.x the worker is no longer a component! you should be able to access onebody now! |
Oops, forgot to take off the worker stuff. I edited my comment above and edited the wiki page too. Thanks @cessien! |
I am using docker on debian (kernel is 3.16.3).
When runinng
docker build -t onebody .
it fails with the following error:Step 15 : ADD Gemfile /var/www/onebody/Gemfile ---> e808ee16f6d3 Removing intermediate container 7445753f8546 Step 16 : ADD Gemfile.lock /var/www/onebody/Gemfile.lock 2015/04/20 14:35:42 Gemfile.lock: no such file or directory
The text was updated successfully, but these errors were encountered: