Skip to content

Commit

Permalink
make tyr-beat work
Browse files Browse the repository at this point in the history
  • Loading branch information
datanel committed Oct 16, 2024
1 parent 374ec78 commit 7a81800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions docker/debian11/Dockerfile-tyr-beat
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ WORKDIR /usr/share/tyr/
COPY ./source/navitiacommon ./navitiacommon
COPY ./source/tyr ./tyr
COPY ./docker/ca-certificates/*.crt /usr/local/share/ca-certificates/
COPY ./docker/run_tyr_beat.sh ./run.sh
COPY ./docker/run_tyr_beat.sh /run.sh
COPY ./source/sql/alembic /usr/share/navitia/ed/alembic
COPY ./source/sql/requirements.txt /tmp/requirements.txt
COPY ./source/cities /usr/share/navitia/cities
COPY ./docker/templates/* /templates/

RUN chmod +x /run.sh

RUN apt-get update --fix-missing \
&& apt-get install -y --force-yes libpq5 python3.9-dev python3-pip git ca-certificates postgresql-client gettext-base jq \
&& apt-get install -y --force-yes libgeos-dev libpq5 python3.9-dev python3-pip git ca-certificates postgresql-client gettext-base jq \
&& update-ca-certificates \
&& (cd navitiacommon && python3 setup.py install) \
&& (cd tyr && python3 setup.py install && pip3 install --no-cache-dir -U -r requirements.txt)\
&& pip3 install --no-cache-dir -U -r /tmp/requirements.txt \
&& rm -rf navitiacommon tyr \
&& apt-get purge -y \
python3-pip \
git \
&& apt-get purge -y git \
&& apt-get autoremove -y

ENTRYPOINT ["bash", "/run.sh"]
2 changes: 1 addition & 1 deletion docker/run_tyr_beat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ while read var ; do
done < <(env)


exec celery beat -A tyr.tasks
exec celery -A tyr.tasks beat

0 comments on commit 7a81800

Please sign in to comment.