Skip to content
Snippets Groups Projects
Commit ad6daa35 authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Add wait-for-it.sh

parent f324bc9f
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,9 @@ COPY config.py opaque.py requirements.txt ./ ...@@ -23,6 +23,9 @@ COPY config.py opaque.py requirements.txt ./
RUN python -m venv venv && \ RUN python -m venv venv && \
venv/bin/pip install -r requirements.txt 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/ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"] ENTRYPOINT ["docker-entrypoint.sh"]
#!/bin/sh #!/bin/sh
/wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
if [ $# -eq 0 ] if [ $# -eq 0 ]
then then
venv/bin/python -u opaque.py venv/bin/python -u opaque.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment