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

Not restarting in docker compose if there is an initial catalog #18

Open
andrewvk opened this issue May 15, 2022 · 0 comments
Open

Not restarting in docker compose if there is an initial catalog #18

andrewvk opened this issue May 15, 2022 · 0 comments

Comments

@andrewvk
Copy link

The problem is that on restart, the script tries again to create a bare repository, but it already exists.
The early versions had the line 'rm -rf $GIT_PROJECT_ROOT/*' in the script, but they removed it in commit 027e0e3.
Additionally, redirecting stderr to dev/null masks all errors and it is impossible to understand what went wrong.

Workaround

docker-compose.yml

    entrypoint: >
      sh -c "rm -rf /var/lib/git/* &&
        entrypoint"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant