Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build broken #2704

Closed
1 task done
PulsarFX opened this issue Nov 6, 2020 · 1 comment
Closed
1 task done

docker build broken #2704

PulsarFX opened this issue Nov 6, 2020 · 1 comment

Comments

@PulsarFX
Copy link

PulsarFX commented Nov 6, 2020

I'm submitting a ..

  • Bug Report

Current behavior:
running docker-compose -f docker-compose.yml.production-example build --no-cache
results in

Step 6/9 : RUN export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 --without test development
 ---> Running in 1b63bad22a26
Following files may not be writable, so sudo is needed:
  /usr/bin
  /usr/lib64/ruby/gems/2.5.0
  /usr/lib64/ruby/gems/2.5.0/build_info
  /usr/lib64/ruby/gems/2.5.0/cache
  /usr/lib64/ruby/gems/2.5.0/doc
  /usr/lib64/ruby/gems/2.5.0/extensions
  /usr/lib64/ruby/gems/2.5.0/gems
  /usr/lib64/ruby/gems/2.5.0/specifications
Your Ruby version is 2.5.8, but your Gemfile specified 2.5.0
ERROR: Service 'production_web' failed to build: The command '/bin/sh -c export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 --without test development' returned a non-zero code: 18

I also tried to change to ruby '2.5.8'
which results in:

Installing prawn-rails 1.2.0
Installing devise_ichain_authenticatable 0.3.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /tmp/bundler20201106-6-1x2m5fmpg-1.1.4/gems/pg-1.1.4/ext
/usr/bin/ruby.ruby2.5 -r ./siteconf20201106-6-18mpgvm.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
 --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***

Expected correct behavior:
build succeeds

Steps to reproduce:

git clone https://github.com/openSUSE/osem.git
cd osem
cp dotenv.example .env.production
docker-compose -f docker-compose.yml.production-example build
@AndrewKvalheim
Copy link
Member

Your Ruby version is 2.5.8, but your Gemfile specified 2.5.0

This is resolved by #2646 or #2680.

Can't find the 'libpq-fe.h header

This is resolved by #2697.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants