mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 18:34:18 +00:00
Add wait-for-it.sh
This commit is contained in:
parent
f324bc9f3b
commit
ad6daa35cc
@ -23,6 +23,9 @@ COPY config.py opaque.py requirements.txt ./
|
||||
RUN python -m venv venv && \
|
||||
venv/bin/pip install -r requirements.txt
|
||||
|
||||
# add wait for it
|
||||
RUN git clone https://github.com/vishnubob/wait-for-it.git /wait-for-it
|
||||
RUN chmod a+x /wait-for-it/wait-for-it.sh
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
/wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
venv/bin/python -u opaque.py
|
||||
|
Loading…
Reference in New Issue
Block a user