Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Renovate Slim docker image

Rafael Grisotto October 2, 2023

Hi,


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?

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2023

Hello @Rafael Grisotto 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 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 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 !

Patrik S

Rafael Grisotto October 4, 2023

Hi @Patrik S
thank you for your prompt response. Could you please create the feature request?


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)

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

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2023

Hey @Rafael Grisotto ,

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 : 

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 in mind.

Thank you, @Rafael Grisotto !

Patrik S

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2023

@Rafael Grisotto 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

Rafael Grisotto October 6, 2023

ok thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events