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

Bug: Docker Build #412

Open
fhkong opened this issue Aug 19, 2022 · 1 comment
Open

Bug: Docker Build #412

fhkong opened this issue Aug 19, 2022 · 1 comment

Comments

@fhkong
Copy link

fhkong commented Aug 19, 2022

Build Docker Failed

When I build the environment for TeXt Theme with docker, I failed to Step 8/10 RUN bundle install. And I want to know how to fix this bug with docker.

Steps to Reproduce

  1. Install Docker on my machine. Ubuntu20.04
  2. docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.6 bundle install
  3. docker-compose -f ./docker/docker-compose.build-image.yml build

When I do step 3, I get into the following trouble.

Step 8/10 : RUN bundle install
 ---> Running in a1b07add330a
/usr/local/lib/ruby/2.7.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (1.17.2) required by your /usr/src/app/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.2`
        from /usr/local/lib/ruby/2.7.0/rubygems.rb:296:in `activate_bin_path'
        from /usr/local/bin/bundle:23:in `<main>'
ERROR: Service 'jekyll-text-theme_dev' failed to build: The command '/bin/sh -c bundle install' returned a non-zero code: 1
@pourmand1376
Copy link

Same error here.

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

2 participants