Skip to content
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

Fix same git error for user root. #108

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ RUN composer selfupdate --2
# Add lab in case anyone wants to automate GitLab MR creation, etc.
RUN curl -s https://raw.githubusercontent.com/zaquestion/lab/master/install.sh | bash

# Avoid git errors with safe.directory as user root.
RUN git config --global --add safe.directory '*'

# Create an unpriviliged test user
# Group 999 already exists on base image (docker).
RUN useradd -r -m -u 999 -g 999 tester && \
Expand All @@ -74,7 +77,7 @@ RUN useradd -r -m -u 999 -g 999 tester && \
chown -R tester /build-tools-ci
USER tester

# Avoid git errors with safe.directory.
# Avoid git errors with safe.directory as user tester.
RUN git config --global --add safe.directory '*'

# Install terminus
Expand Down