sameersbn / sameersbn/docker-gitlab

Error when trying to build docker locally

Open
#2,434 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

I tried building the docker locally using
docker build -t sameersbn/gitlab github.com/sameersbn/docker-gitlab

But it ended with error:

#7 71.83 Compiling gitlab-shell golang executables...
#7 71.88 /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:50:in `<class:Specification>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)
#7 71.89 	from /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:49:in `<top (required)>'
#7 71.89 	from /usr/lib/ruby/2.7.0/rubygems.rb:1424:in `require'
#7 71.89 	from /usr/lib/ruby/2.7.0/rubygems.rb:1424:in `<top (required)>'
#7 71.89 	from <internal:gem_prelude>:1:in `require'
#7 71.89 	from <internal:gem_prelude>:1:in `<internal:gem_prelude>'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported docker build -t sameersbn/gitlab github.com/sameersbn/docker-gitlab command and start with the RubyGems trace from operating_system.rb and Ruby 2.7. Check the Docker build context and its gitlab-shell compilation step. Done means the local image builds successfully without the reported rubyforge_project= error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ruby
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.