Skip to content

Commit

Permalink
Fix git permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Nov 28, 2024
1 parent ce317e2 commit e3b72af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openshift/drupal-repository/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ EXPOSE 9000

# Copy configuration files and scripts
COPY files/ /

RUN { \
echo '[safe]'; \
echo "directory = /var/www/html"; \
} > /.gitconfig

RUN chmod +x /entrypoints/* && \
chmod +x /usr/local/bin/entrypoint

ENTRYPOINT ["/sbin/tini", "--"]

# Default command: Start up multiple services via entrypoint
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
git config --global --add safe.directory $PROJECT_DIR

0 comments on commit e3b72af

Please sign in to comment.