nacyot / dockerfiles

:whale2: Dockerfiles by nacyot
14 stars 8 forks source link

Docker build E: Unable to correct problems, you have held broken packages. #3

Open chrisfelix82 opened 8 years ago

chrisfelix82 commented 8 years ago

I am getting the above error when I try to build the huboard Dockerfile. Any ideas?

chrisfelix82 commented 8 years ago

Well got past that error by commenting this out:

RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list

Now I ran into this error Your Ruby version is 2.0.0, but your Gemfile specified 2.2.1 The command '/bin/sh -c cd /app; bundle install;' returned a non-zero code: 18

chrisfelix82 commented 8 years ago

OK got past that now by changing to RUN git clone -b master https://github.com/huboard/huboard-web.git /app

chrisfelix82 commented 8 years ago

Needed to also add RUN apt-get install liblzma-dev zlib1g-dev RUN gem install nokogiri -v "1.6.5"

chrisfelix82 commented 8 years ago

Finally got the image built with a lot of changes. The container does not run though

3:17:12 web.1 | /var/lib/gems/2.2.0/gems/fog-core-1.29.0/lib/fog/core/service.rb:244:in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)

I don't want to use aws so I guess I am stuck now