diff options
| author | Paolo Melchiorre <paolo@melchiorre.org> | 2025-01-20 12:43:35 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2025-01-20 15:16:25 +0100 |
| commit | 1bb286daa80cb8b5d5cc863e711499d3c30e60a3 (patch) | |
| tree | c591b70f17dc93cc4e521bbce943fcad7fc1dd9f /docker-entrypoint.dev.sh | |
| parent | 923d3fb38bc9b13e3a4f7da257b92941b22df096 (diff) | |
Move db healtcheck in docker compose
Diffstat (limited to 'docker-entrypoint.dev.sh')
| -rwxr-xr-x | docker-entrypoint.dev.sh | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/docker-entrypoint.dev.sh b/docker-entrypoint.dev.sh index d3fd0f1f..11a38190 100755 --- a/docker-entrypoint.dev.sh +++ b/docker-entrypoint.dev.sh @@ -1,13 +1,5 @@ #!/bin/sh -echo "Waiting for postgres..." - -while ! pg_isready -h db -p 5432 -q; do - sleep 0.1 -done - -echo "PostgreSQL started" - python -m manage flush --no-input # PGPASSWORD=djangoproject psql --host db --port 5432 --username=code.djangoproject --dbname=code.djangoproject < tracdb/trac.sql python -m manage migrate |
