Added data_scraper

This commit is contained in:
Juan Pablo Amoroso
2019-05-13 15:28:23 -03:00
parent 6b0f7e2d32
commit 34925b8bee
26 changed files with 5573 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM debian:latest
MAINTAINER Juan Pablo Amoroso <jamoroso@lambdaclass.com>
RUN apt-get update
RUN apt-get install -y python3 python3-pip make cron build-essential pkg-config openssl libssl-dev
RUN python3 -m pip install pipenv
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
COPY . /finance
WORKDIR /finance
RUN make init
COPY ./docker/data_scraper/crontab /etc/cron.d/scraper-cron
COPY ./docker/data_scraper/entrypoint.sh /usr/bin/entrypoint.sh
COPY ./docker/data_scraper/run-task.sh /usr/bin/run-task
RUN chmod 0644 /etc/cron.d/scraper-cron && crontab /etc/cron.d/scraper-cron
ENTRYPOINT ["entrypoint.sh"]
CMD ["cron", "-f"]