Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try bashrc
Browse files Browse the repository at this point in the history
theory committed Jan 19, 2024
1 parent 51290e8 commit 608eeb8
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -16,7 +16,8 @@ RUN chmod +x /usr/local/bin/apt.postgresql.org.sh \
&& rm -r cpanm ~/.cpanm \
&& echo Defaults lecture = never >> /etc/sudoers \
&& perl -i -pe 's/\bALL$/NOPASSWD:ALL/g' /etc/sudoers \
&& echo 'postgres ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
&& echo 'postgres ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers \
&& echo 'git config --global --add safe.directory "${GITHUB_WORKSPACE:-${PWD}}"' >> /etc/bash.bashrc

COPY bin/* /usr/local/bin/

5 changes: 1 addition & 4 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -4,10 +4,7 @@ set -e

# Ensure Git can do stuff in the working directory.
# https://github.com/pgxn/docker-pgxn-tools/issues/5
echo "SETTING DIRECTORY TO ${GITHUB_WORKSPACE:-${PWD}}" > /tmp/entrypoint.txt
git config --system --add safe.directory "${GITHUB_WORKSPACE:-${PWD}}"
git config --global --add safe.directory "${GITHUB_WORKSPACE:-${PWD}}"
env >> /tmp/entrypoint.txt
# git config --system --add safe.directory "${GITHUB_WORKSPACE:-${PWD}}"

# Just continue if unprivileged user not requested.
[ -z "$AS_USER" ] && exec "$@"

0 comments on commit 608eeb8

Please sign in to comment.