Permitting Git to write to a file outside of Docker container & alternatives

  docker, git, git-post-receive, gitea, move

Objective:

Git repo of example.com [Gitea Docker container] git-checkouts files to /docker/gitea/example.com, then moves files into locally-hosted website [nginx Docker container] /docker/www/example.com.

My setup:

  1. Files are pushed to Gitea repo example.com
  2. Gitea instance with post-receive & git-checkout outputs to
    /docker/gitea/example.com directory
  3. (!) Post-receive then executes movefiles.sh to move website data from
    /docker/gitea/example.com to /docker/www/example.com

This is where I am stuck, as movefiles.sh is never executed by post-receive; script is also set to proper execution permissions. If there exists a more streamlined approach to this, let me know.

Thanks in advance for any help.

Source: Docker Questions

LEAVE A COMMENT