Comments (8)
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.
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.
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.
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.
unless we switch the base image from alpine
to alpine:edge
But alpine:edge
is not for production
"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.
Hey @ozbillwang I see that alpine has released a new version. Could we update now?
from git.
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.
The latest tag is v2.36.2 already.
Close this issu now.
from git.
Related Issues (20)
- current alpine release HOT 2
- apk has errors when run on arm64 HOT 12
- Any good example how to add .ssh key from environment variable? HOT 2
- Host key verification failed when trying to clone in kubernetes HOT 2
- Can not clone repository HOT 2
- Update git() function HOT 1
- what the heck is the latest tag? Git v1 or git v2? HOT 1
- BUG: Cannot install the `patch` package with the images pushed as "latest" on 2022-08-22 HOT 14
- Add riscv64 support HOT 7
- Vulnerability in libexpat < 2.4.9 CVE-2022-40674 HOT 2
- fatal: detected dubious ownership in repository at '/git' HOT 3
- sed, cmd_, uname not found while trying to run git-sh-setup for GitSubmodules. HOT 4
- Docker is sunsetting Free Team organizations HOT 4
- Monthly builds are not running HOT 9
- curl does not work on latest HOT 5
- How can i upgrade the git version in alpine/git:v2.24.3-user ? HOT 1
- Re-enable non-root image builds HOT 3
- Git pull_request - perl missing in image
- Can't connect to any url HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git.