Skip to content

Commit

Permalink
fix(docker): Prevent wrong elastic server for wait-for-it
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Nov 8, 2022
1 parent 390d47e commit c6a10c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release.Dockerfile
Expand Up @@ -4,6 +4,7 @@ COPY dist/*.whl /packages/

ENV USERS_DB=/config/.users.yml


RUN wget -O /wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh \
&& chmod +x /wait-for-it.sh \
&& find /packages/*.whl -exec pip install {}[server] \;
Expand All @@ -12,4 +13,4 @@ RUN wget -O /wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for
ENV MODULE_NAME="argilla"
ENV VARIABLE_NAME="app"

CMD /wait-for-it.sh $ARGILLA_ELASTICSEARCH -- /start.sh
CMD /wait-for-it.sh ${ARGILLA_ELASTICSEARCH:-${ELASTICSEARCH:-no.elastic.found:9200}} -- /start.sh

0 comments on commit c6a10c7

Please sign in to comment.