forked from lfd/sigmod23-reproduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (57 loc) · 1.85 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM rocker/r-ver:4.1.3
LABEL authors="Manuel Schoenberger <manuel.schoenberger@othr.de>"
ENV DEBIAN_FRONTEND noninteractive
ENV LANG="C.UTF-8"
ENV LC_ALL="C.UTF-8"
# Install required packages
RUN apt-get update && apt-get install -y \
wget \
python3.8 \
python3-pip \
texlive-latex-base \
texlive-science \
texlive-fonts-recommended \
texlive-publishers \
texlive-bibtex-extra \
libcairo2-dev \
libxt-dev \
libudunits2-dev \
libproj15 \
libgdal-dev \
biber
# Install R Packages
RUN R -e "install.packages('ggplot2')"
RUN R -e "install.packages('ggh4x')"
RUN R -e "install.packages('ggpmisc')"
RUN R -e "install.packages('ggrastr')"
RUN R -e "install.packages('ggpattern')"
RUN R -e "install.packages('ggfortify')"
RUN R -e "install.packages('dplyr')"
RUN R -e "install.packages('forcats')"
RUN R -e "install.packages('stringr')"
RUN R -e "install.packages('scales')"
RUN R -e "install.packages('tidyr')"
RUN R -e "install.packages('tibble')"
RUN R -e "install.packages('tikzDevice')"
# Add user
RUN useradd -m -G sudo -s /bin/bash repro && echo "repro:repro" | chpasswd
RUN usermod -a -G staff repro
USER repro
# Add artifacts (from host) to home directory
ADD --chown=repro:repro . /home/repro/sigmod-repro
WORKDIR /home/repro/sigmod-repro
# Install Gurobi
RUN mkdir gurobi
WORKDIR /home/repro/sigmod-repro/gurobi
RUN wget https://packages.gurobi.com/10.0/gurobi10.0.2_linux64.tar.gz
RUN tar -xvf gurobi10.0.2_linux64.tar.gz
WORKDIR /home/repro/sigmod-repro
# install python packages
ENV PATH $PATH:/home/repro/.local/bin
RUN pip3 install -r requirements.txt
# Gurobi ENV variables
ENV GUROBI_HOME="/home/repro/sigmod-repro/gurobi/gurobi1002/linux64"
ENV PATH $PATH:/home/repro/sigmod-repro/gurobi/gurobi1002/linux64/bin
ENV LD_LIBRARY_PATH $GUROBI_HOME/bin
ENTRYPOINT ["./scripts/run.sh"]
CMD ["bash"]