I am building jenkins slave using docker image.
Need to install git on to the docker image. How can i do that.
Is there any docker image for git that can be used.
thanks
I am building jenkins slave using docker image.
Need to install git on to the docker image. How can i do that.
Is there any docker image for git that can be used.
thanks
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                If there is none, you can quickly build one with a small base image (like Alpine), and a directive like:
# Install Git
RUN apt-get install git-core --assume-yes
                        
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                I've created a simple docker image that comes packaged with Jenkins, Java8, Git, Maven and NodeJS. This covers most use cases so you don't have to keep making new Jenkins images every week.
And the relevant github for source code