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

Slim option doesn't work in CircleCI #26

Open
vdhpieter opened this issue Oct 28, 2021 · 4 comments
Open

Slim option doesn't work in CircleCI #26

vdhpieter opened this issue Oct 28, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@vdhpieter
Copy link
Contributor

Orb version:

3.0.0

What happened:

When turning on the slim option renovate does not work. When using the slim container the binarySource option is set to docker in the dockerfile. Using this option means that new child docker container/processes will be spawned. To use this in CircleCI you have to add the setup_remote_docker step.

Just FYI when using adding that step locally I stil had some access issue but didn't have the time to look into it.

Expected behavior:

When using the slim option the orb takes all measures so this can run smoothly.

@vdhpieter vdhpieter added the bug Something isn't working label Oct 28, 2021
@vdhpieter
Copy link
Contributor Author

I just noticed that the "large" renovate image uses node 14 with npm 6 and I need npm 7. I will try to look into this and make it work for node at least. I'll keep you posted about my findings!

@vdhpieter
Copy link
Contributor Author

vdhpieter commented Oct 28, 2021

Ok next issue was with access rights to folders, passing RENOVATE_DOCKER_USER: root did the trick

Following one: not recognizing that the package-lock was changed, renovate is relying on volumes to work but that doesn't work on CircleCI:

It is not possible to mount a volume from your job space into a container in Remote Docker (and vice versa). You may use the docker cp command to transfer files between these two environments.

Source: https://circleci.com/docs/2.0/building-docker-images/#mounting-folders

@vdhpieter
Copy link
Contributor Author

vdhpieter commented Oct 28, 2021

After thinking about the problem I described above I would just disable the slim option for the circle ci orb. It's clearly not made for it.

To solve my personal problem I'm planning on using pre-steps and post-steps and install the latest version of NPM through that
https://circleci.com/docs/2.0/configuration-reference/#pre-steps-and-post-steps-requires-version-21

@daniel-shuy
Copy link
Owner

Thanks for the findings! Good point, I'll remove the slim mode in the next major release, I guess its not worth the trouble with DinD (Docker-in-Docker)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants