Skip to content

Instantly share code, notes, and snippets.

@zappingseb
Last active October 3, 2019 20:19
Show Gist options
  • Save zappingseb/6d65f7d27ce85185c785613f83a8036f to your computer and use it in GitHub Desktop.
Save zappingseb/6d65f7d27ce85185c785613f83a8036f to your computer and use it in GitHub Desktop.
DockerFile for Mt Whitney crawl
# alpine-python-ecmwfapi
FROM rocker/tidyverse:3.6.0
MAINTAINER zappingseb "sebastian@mail-wolf.de"
RUN R -e "install.packages(c('RSelenium'), repos='https://cran.rstudio.com/') "
RUN apt-get update -qq \
&& apt-get install -y \
python-pip \
vim
RUN pip install pytest-shutil
RUN pip install --upgrade numpy secure-smtplib email
COPY run_tests.R /tmp/run_tests.R
COPY sendmail.py /tmp/sendmail.py
RUN apt-get update && apt-get -y install cron
RUN echo "0 */12 * * * root Rscript /tmp/run_tests.R" >> /etc/crontab
RUN service cron start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment