Skip to content

Add R and apt packages to container image #1239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions facebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ RUN install2.r --error \
stringi \
data.table \
roxygen2 \
Rcpp
Rcpp \
BH

RUN R --no-restore --no-save -e 'devtools::install_version("readr", version="1.4.0")'
RUN apt-get update && apt-get install -qq -y python3-venv
RUN apt-get update && apt-get install -qq -y \
python3-venv \
sshpass \
openssh-server \
ssmtp

ADD ./delphiFacebook /facebook/delphiFacebook/
ADD ./static /facebook/static/
Expand All @@ -20,6 +26,7 @@ ADD ./run.R /facebook/run.R
ADD ./monthly-files.R /facebook/monthly-files.R
ADD ./contingency_tables.R /facebook/contingency_tables.R
ADD ./contingency-combine.R /facebook/contingency-combine.R
ADD ./ssmtp.conf /etc/ssmtp/ssmtp.conf
WORKDIR /facebook/
RUN make lib
RUN make install
21 changes: 21 additions & 0 deletions facebook/ssmtp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=localhost

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=delphi.cmu.edu

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES