allow protocol to be specified in argument

work towards issue #48
This commit is contained in:
Morgan McMillian 2022-12-11 07:13:28 -08:00
parent 32d38bc005
commit de7f4f5c35
2 changed files with 3 additions and 3 deletions

View file

@ -11,4 +11,4 @@ ENV CONFIG_FILE=/data/config.yaml
VOLUME /data
WORKDIR /data
EXPOSE 5000
CMD [ "python", "/usr/src/app/pnut-matrix.py", "-d" ]
CMD [ "python", "/usr/src/app/pnut-matrix.py" ]

View file

@ -3,7 +3,7 @@
#
# based on an exmaple from https://docs.docker.com/compose/startup-order/
#
# command: ["./wait-for-synapse.sh", "synapse", "python", "/usr/src/app/pnut-matrix.py", "-d"]
# command: ["/usr/src/app/wait-for-synapse.sh", "http://synapse:8008", "python", "/usr/src/app/pnut-matrix.py", "-d"]
set -e
@ -17,7 +17,7 @@ host="$1"
# This is done for `exec "$@"` below to work correctly
shift
until [ "200" -eq $(curl -s -o /dev/null --head -w "%{http_code}" https://${host}/_matrix/client/versions) ]; do
until [ "200" -eq $(curl -s -o /dev/null --head -w "%{http_code}" ${host}/_matrix/client/versions) ]; do
>&2 echo "synapse is unavailable - sleeping"
sleep 3
done