-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"'/src' is owned by someone else" reported when building status.jenkins.io with docker-hugo #82
Comments
It looks like the best hope for the Jenkins project use of the Hugo container is to switch to a different build. Refer to comments in : Comments there include a link to https://hub.docker.com/r/floryn90/hugo/tags that provides arm64 and amd64 container images. |
MarkEWaite
added a commit
to MarkEWaite/status
that referenced
this issue
Dec 29, 2023
klakegg/docker-hugo#82 notes that root is the default user of the container, but that causes issues for our environment because it blocks git operations. Switch to run as the current user so that git operations are not blocked. Running as the current user means that the Hugo build lock cannot be written. Disable it with a command line switch. Not a perfect solution, but simple enough to allow upgrade to a more recent Hugo version.
MarkEWaite
added a commit
to MarkEWaite/status
that referenced
this issue
Dec 29, 2023
klakegg/docker-hugo#82 notes that root is the default user of the container, but that causes issues for our environment because it blocks git operations. Switch to run as the current user so that git operations are not blocked. Running as the current user means that the Hugo build lock cannot be written. Disable it with a command line switch. Not a perfect solution, but simple enough to allow upgrade to a more recent Hugo version.
A first attempt to resolve the issue by changing the user ID that runs the Hugo build process: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are happy users of the
docker-hugo
container image to build the https://status.jenkins.io showing the condition of Jenkins infrastructure. We manage that site at https://github.com/jenkins-infra/status and are currently using docker-hugo 0.95.0.We'd like to upgrade from 0.95.0 to 0.111.3 but our upgrade attempts fail due to an error message from command line git inside the container image. The error message reported by the GitHub action and in local development is:
Can you suggest changes that we should make in order to allow our site build process to upgrade?
The failing pull request is:
I assume we could create our own container derived from your container with the addition of a
RUN git config --global --add safe.directory /src
, but I wonder if there is a better way or an easier way.The text was updated successfully, but these errors were encountered: