diff --git a/services/swh-indexer-journal-client/entrypoint.sh b/services/swh-indexer-journal-client/entrypoint.sh --- a/services/swh-indexer-journal-client/entrypoint.sh +++ b/services/swh-indexer-journal-client/entrypoint.sh @@ -2,16 +2,8 @@ set -e -if [[ -d /src ]] ; then - for srcrepo in /src/swh-* ; do - pushd $srcrepo - pip install -e . - popd - done -fi - -echo Installed Python packages: -pip list +source /srv/softwareheritage/utils/pyutils.sh +setup_pip case "$1" in "shell") diff --git a/services/swh-journal-publisher/entrypoint.sh b/services/swh-journal-publisher/entrypoint.sh deleted file mode 100755 --- a/services/swh-journal-publisher/entrypoint.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -set -e - -if [[ -d /src ]] ; then - for srcrepo in /src/swh-* ; do - pushd $srcrepo - pip install -e . - popd - done -fi - -echo Installed Python packages: -pip list - -case "$1" in - "shell") - exec bash -i - ;; - *) - echo "Starting swh-journal-publisher" - exec wait-for-it kafka:9092 -s --timeout=0 -- swh-journal publisher - ;; -esac diff --git a/services/swh-storage-listener/entrypoint.sh b/services/swh-storage-listener/entrypoint.sh deleted file mode 100755 --- a/services/swh-storage-listener/entrypoint.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -e - -source /srv/softwareheritage/utils/pyutils.sh -setup_pip - -source /srv/softwareheritage/utils/pgsql.sh -setup_pgsql - -case "$1" in - "shell") - exec bash -i - ;; - *) - wait_pgsql - - echo "Starting swh-storage-listener" - exec wait-for-it kafka:9092 -s --timeout=0 -- python3 -m swh.storage.listener - ;; -esac