gittuf/debug/Dockerfile.Git_2_34_1
Aditya Sirish A Yelgundhalli 4f22a329be
debug: Add Dockerfile for debugging gittuf on Git 2.34.1
Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
2024-10-29 23:00:16 -04:00

18 lines
731 B
Text

# This Dockerfile can be used to build a container image with Git 2.34.1 but the
# latest Go and delve release. This is useful when debugging gittuf errors with
# Git 2.34.1, a version of Git we support due to it being the latest on Ubuntu
# 22.04 LTS. After building the container image, run it with the local
# repository as a mounted volume. That way, changes can be made outside the
# container but iteratively debugged within the container.
FROM ubuntu:22.04
RUN apt-get update && apt-get install git software-properties-common -y
RUN add-apt-repository ppa:longsleep/golang-backports -y
RUN apt-get update && apt-get install golang -y
RUN go install github.com/go-delve/delve/cmd/dlv@latest
ENV PATH=/root/go/bin:$PATH