docker-ssh-agent icon indicating copy to clipboard operation
docker-ssh-agent copied to clipboard

Missing git in the docker image

Open Lorca-R opened this issue 2 years ago • 0 comments

Jenkins and plugins versions report

Environment

not related

What Operating System are you using (both controller, and any agents involved in the problem)?

ubuntu 18.04

Reproduction steps

git-lfs is missing in the latest image (Oct 8, 2022 at 6:19 pm) push

docker hub jenkins/ssh-agent:latest in layer 10 shows following command:

RUN |5 user=jenkins group=jenkins uid=1000 gid=1000 JENKINS_AGENT_HOME=/home/jenkins /bin/sh -c apt-get update     && apt-get install --no-install-recommends -y openssh-server     && rm -rf /var/lib/apt/lists/* # buildkit

but in master https://github.com/jenkinsci/docker-ssh-agent/blob/c8cb1e99a0ae3c0aed14bc7fbbe6d0cc0996064b/8/bullseye/Dockerfile#L39

RUN apt-get update \
    && apt-get install --no-install-recommends -y openssh-server git-lfs netcat-traditional \
    && rm -rf /var/lib/apt/lists/*

git-lfs netcat-traditional is missing. Clearly there is a mismatch between git repo and actual docker image.

I checked some other images like jenkins/ssh-agent:jdk11 and jenkins/ssh-agent:alpine, git-lfs is not installed too.

Is it removed for some reason?

Expected Results

git is correctly installed

Actual Results

git is not installed

Anything else?

No response

Lorca-R avatar Oct 14 '22 12:10 Lorca-R