Renovate Slim docker image
Asked by Rafael Grisotto:

Hi,

<br />

here: <https://bitbucket.org/atlassian/renovate-scan/src/6a34b2daf021cd551ebe95fa135b76e933e7125d/Dockerfile#lines-1>

Why not use the Renovate slim docker image? Or an option to choose?


Answers:
author: Patrik S
body: Hello [@Rafael Grisotto](/t5/user/viewprofilepage/user-id/5328719) and welcome to the Community!

Pipes are essentially a docker image containing a script to accomplish a given task. All the Atlassian-developed pipes, such as the [atlassian/renovate-scan](https://bitbucket.org/atlassian/renovate-scan/src/master/) are available in public repositories, which can be forked to make any custom changes you would like.

So in this case, if you would like to change the base image used by that particular pipe, you could fork that repository, make the changes to the Dockerfile in your fork, and then push the custom docker image to your own dockerhub registry.

Once the custom pipe image is pushed and available publicly in Dockerhub, you can refer to it in your pipeline using the following syntax :

```
pipe: docker://<DockerAccountName>/<ImageName>:<version> 
```

It's important to note though, that the renovate slim image might not contain all the dependencies necessary for that pipe's script to run, so you might want to test it to see how it goes with the slim image compared to the full image.

You can also find more details on custom pipes in the [Write a pipe for bitbucket pipelines](https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/) documentation.

However, if you would prefer the official renovate-scan pipe to be changed to use the base image as renovate slim, please let me know so I can create a feature request for our pipe development team.

Thank you, [@Rafael Grisotto](/t5/user/viewprofilepage/user-id/5328719) !

Patrik S

comments: author: Rafael Grisotto
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)  
thank you for your prompt response. Could you please create the feature request?  

<br />

it's important to note that a slim image has a size that is four-five times smaller, and it's typically essential.  

The full size image usually have: 1.46 GB compressed.  
The slim size image usually have: 300 MB compressed.  

According to the documentation, it's stated that 'slim' is the default option.  

> ##### THE DEFAULT IMAGE (FORMERLY `SLIM`)[?](https://docs.renovatebot.com/getting-started/running/#the-default-image-formerly-slim) {#toc-hId--1530470540}
>
> The default image only comes with the Node.js environment. Renovate will then install any needed tools when it runs. Read the `binarySource=install` documentation for more details. We recommend this default image for most users.

<https://docs.renovatebot.com/getting-started/running/#the-default-image-formerly-slim>  

thank you


author: Patrik S
body: Hey [@Rafael Grisotto](/t5/user/viewprofilepage/user-id/5328719) ,

For sure! I went ahead and created the feature request to update atlassian/renovate-scan image to be based on the renovate's slim image :

* <https://jira.atlassian.com/browse/BCLOUD-22916>

We encourage you to add your **Vote** there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Rafael Grisotto](/t5/user/viewprofilepage/user-id/5328719) !

Patrik S


author: Igor Stoyanov
body: [@Rafael Grisotto](/t5/user/viewprofilepage/user-id/5328719) hi. Some additional info.
> The full image is for users who don't want to download or install things at runtime.

This is very important for us, so, unfortunately, the only way for you to use a slim image, is to create custom pipe as described above.

Regards, Igor


author: Rafael Grisotto
body: ok thank you


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

renovate

scan