-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
bundler: bundle: not found
error occurs when running renovate using Docker
#4016
Comments
This is a bit related to #3860, so if I use |
Bundler will only work with binarySource=docker because of the importance of running the exact Ruby and Bundler version the project requires. Ie if we added one specific version to the Dockerfile then it would be “wrong” for a large proportion of users. Bundler is the first package manager to need this, and it’s still so we’re a bit lacking in docs, but we plan to roll it out for all binaries and then publish a much smaller Renovate default image that pulls the other images as needed. |
Okay now I understand the situation, thanks for the clarification! It would be great
|
I don’t understand your second point. Could you describe in more detail what you mean? I should have said that you can run Bundler using globals, but for that to work with the Docker distribution you’ll need to add Ruby/bundler to the image yourself. |
What I want is that Renovate CLI would run Bundler using Docker even if
I see that you won't support the case, so please feel free to close this. |
Actually it’s not “docker in docker” so that’s not possible unless you map in the Docker socket to Renovate |
@ikesyo, My team has the exact same issue. I am unclear what you did to fix this. I can open a new issue if necessary. Here is my error, when running it locally WARN: Failed to generate Gemfile.lock (unknown error) (repository=payment/test-gems, dependencies=rails, branch=PAY-1729-Renovaterails-6-x)
"err": {
"killed": false,
"code": 127,
"signal": null,
"cmd": "bundle lock --update rails",
"stdout": "",
"stderr": "/bin/sh: 1: bundle: not found\n",
"message": "Command failed: bundle lock --update rails\n/bin/sh: 1: bundle: not found\n",
"stack": "Error: Command failed: bundle lock --update rails\n/bin/sh: 1: bundle: not found\n\n at ChildProcess.exithandler (child_process.js:294:12)\n at ChildProcess.emit (events.js:198:13)\n at maybeClose (internal/child_process.js:982:16)\n at Socket.stream.socket.on (internal/child_process.js:389:11)\n at Socket.emit (events.js:198:13)\n at Pipe._handle.close (net.js:606:12)"
} |
@shushugah app or cli? |
CLI and Gitlab version I have included a |
@shushugah the error you paste indicates that |
Continuing conversation here, as it's related renovatebot/config-help#336 (comment) |
What Renovate type are you using?
Renovate CLI (Docker)
Describe the bug
When running Renovate CLI using Docker for a repository which have Gemfile,
bundle: not found
error occurs.Did you see anything helpful in debug logs?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successfully finishing the execution.
Screenshots
Additional context
Looks like the Dockerfile does not set up Ruby and bundler so that will be the cause.
The text was updated successfully, but these errors were encountered: