mirror of https://gitea.com/gitea/test-env.git
version-lock git at v2.38.4 (#19)
Feel free to reject this, but I feel we should be building the test image with the same version of git we are deploying in released docker images. Since we're using alpine 3.17, that should be `2.38.4`: https://pkgs.alpinelinux.org/packages?name=git&branch=v3.17&repo=&arch=&maintainer= Reviewed-on: https://gitea.com/gitea/test-env/pulls/19 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: John Olheiser <john+gitea@jolheiser.com> Co-authored-by: Kyle <kyle@noreply.gitea.io> Co-committed-by: Kyle <kyle@noreply.gitea.io>
This commit is contained in:
parent
e3b724b24d
commit
56e84fe1c2
10
Dockerfile
10
Dockerfile
|
@ -12,14 +12,14 @@ RUN addgroup \
|
||||||
--gid $GITEA_GID \
|
--gid $GITEA_GID \
|
||||||
gitea
|
gitea
|
||||||
|
|
||||||
# upgrade git to v2.39.1
|
# version-lock git to v2.38.4 to match alpine 3.17
|
||||||
RUN curl -SL https://github.com/git/git/archive/v2.39.1.tar.gz \
|
RUN curl -SL https://github.com/git/git/archive/v2.38.4.tar.gz \
|
||||||
| tar -xzv -C /go \
|
| tar -xzv -C /go \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev \
|
&& apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev \
|
||||||
&& make -C /go/git-2.39.1 prefix=/usr all \
|
&& make -C /go/git-2.38.4 prefix=/usr all \
|
||||||
&& make -C /go/git-2.39.1 prefix=/usr install \
|
&& make -C /go/git-2.38.4 prefix=/usr install \
|
||||||
&& rm -rf /go/git-2.39.1 \
|
&& rm -rf /go/git-2.38.4 \
|
||||||
# install git-lfs
|
# install git-lfs
|
||||||
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
|
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
|
||||||
&& apt-get install -y git-lfs \
|
&& apt-get install -y git-lfs \
|
||||||
|
|
Loading…
Reference in New Issue