Git Product home page Git Product logo

Comments (8)

DennisPlaydon avatar DennisPlaydon commented on May 22, 2024 1

Would it be possible to release a -preview version which uses alpine edge? We are not using the alpine/git in production. It is used for local and CI automation. Once alpine has updated then you could deprecate the preview version and switch back to standard alpine.

I will say that this is not a blocking issue. We have a workaround that trusts the directory which resolves the issue at the moment.

For anyone that stumbles upon this. We are using git config --global --add safe.directory /dir to trust the directory that is throwing errors.

I'm interested to know your thoughts on what should happen next

from git.

jaydrogers avatar jaydrogers commented on May 22, 2024 1

Thanks for organizing and maintaining this project!

Just adding a note for others who are attempting to run git config --global --add safe.directory /git:

  • 👉 If you run this command before your git pull command in CI, then you may have to do an extra step

Solution:

  • Mount a volume for /root in the container

Example:
Here is a snippet from my Gitlab deployment:

script:
  - docker run --rm --pull always -v /home/deploy-user/:/root -v /path/to/my/app:/git alpine/git config --global --add safe.directory /git"
  - docker run --rm --pull always -v /home/deploy-user/:/root -v /path/to/my/app:/git alpine/git pull origin my-branch"

from git.

ozbillwang avatar ozbillwang commented on May 22, 2024

yes, I saw the same error on version 2.34.1 only. that's the latest image generated, which was auto-generated yesterday. No problem on tag 2.32.x

For production usage, please don't use the latest as tag when you pull the image, always stick on a version which have been tested.

Let me trigger the pipeline to build a new image on v2.35.2

from git.

ozbillwang avatar ozbillwang commented on May 22, 2024

Seems we have to wait for the new version available in Alpine. Let me explain.

This Dockerfile is to install git via apk add git directly, it will always install the latest version in Alpine.

But currently latest git version in alpine is v2.34.2

but the official git release has been v2.36.0 (https://github.com/git/git/tags)

I have to wait, otherwise, we need adjust our codes to compile and build the git from source codes, that would be totally different cases.

from git.

ozbillwang avatar ozbillwang commented on May 22, 2024

unless we switch the base image from alpine to alpine:edge

image

image

But alpine:edge is not for production

ref: https://wiki.alpinelinux.org/wiki/Edge#:~:text=From%20Alpine%20Linux,updated%20on%20a%20regular%20basis.

"edge" is the name given to the current development tree of Alpine Linux. It consists of a APK repository called "edge" and contains the latest build of all available Alpine Linux packages. Those packages are updated on a regular basis.

Warning: "edge" is under constant development so be careful using it in production. It is possible that bugs in "edge" could cause data loss or could break your system.

from git.

DennisPlaydon avatar DennisPlaydon commented on May 22, 2024

Hey @ozbillwang I see that alpine has released a new version. Could we update now?
image

from git.

ozbillwang avatar ozbillwang commented on May 22, 2024

the free pipeline sets some limitation build time now. i changed the build frequency from daily to weekly. so it is possible to wait for one week to get the latest version

from git.

ozbillwang avatar ozbillwang commented on May 22, 2024

The latest tag is v2.36.2 already.

Close this issu now.

from git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.