docker: Add missing git dependency for Fedora Dockerfile

Fedora image building by build-release.sh currently throws error ` git: command not found`.

Fixed it by adding git in the Dockerfile and loading the image in the script.

Changelog-None.
This commit is contained in:
ShahanaFarooqui 2024-05-23 22:42:55 -07:00 committed by Alex Myers
parent 0a163c456f
commit 7f5282aa65
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ RUN dnf update -y && \
net-tools \
valgrind \
wget \
git \
jq \
xz \
zlib-devel && \

View file

@ -148,7 +148,7 @@ for target in $TARGETS; do
echo "Building Fedora Image"
DOCKERFILE=contrib/docker/Dockerfile.builder.fedora
TAG=fedora
docker build -f $DOCKERFILE -t $TAG .
docker build -f $DOCKERFILE -t $TAG --load .
docker run --rm=true -v "$(pwd)":/src:ro -v "$RELEASEDIR":/release $TAG /src/tools/build-release.sh --inside-docker "$VERSION" "$platform"
docker run --rm=true -w /build $TAG rm -rf /"$VERSION-$platform" /build
echo "Fedora Image Built"