-
Notifications
You must be signed in to change notification settings - Fork 1
Adding a makefile and Dockerfile for ease of use #43
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
Draft
nsaripalli
wants to merge
3
commits into
PRL-PRG:master
Choose a base branch
from
nsaripalli:add-docker-file
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| FROM ubuntu | ||
| ENV DEBIAN_FRONTEND noninteractive | ||
| RUN apt-get update && \ | ||
| apt-get install -y gcc gfortran libbz2-dev fort77 bzip2 xorg-dev liblzma-dev libblas-dev gfortran gcc-multilib gobjc++ aptitude libreadline-dev\ | ||
| libjpeg-dev libssl-dev libcurl4-openssl-dev libxml2-dev libpng-dev build-essential git libpcre2-dev littler \ | ||
| xvfb xauth xfonts-base texlive-latex-base texlive-fonts-extra pandoc openssh-server gdb && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
| # install dyntrace | ||
| RUN git clone https://github.com/PRL-PRG/R-dyntrace.git && cd R-dyntrace && bash -c "git checkout r-4.0.2" && \ | ||
| ./build --with-readline=no --with-x=no | ||
| # Install ssh for Clion debugging | ||
| RUN mkdir /var/run/sshd | ||
| RUN echo 'root:screencast' | chpasswd | ||
| RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | ||
|
|
||
| # SSH login fix. Otherwise user is kicked off after login | ||
| RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd | ||
|
|
||
| ENV NOTVISIBLE "in users profile" | ||
| RUN echo "export VISIBLE=now" >> /etc/profile | ||
|
|
||
| EXPOSE 22 | ||
| CMD ["/usr/sbin/sshd", "-D"] | ||
| # Install injectr | ||
| RUN cd /home && git clone https://github.com/nsaripalli/injectr.git && cd injectr && git checkout patch-1 && \ | ||
| xvfb-run --auto-servernum --server-num=1 make R="/R-dyntrace/bin/R" clean build install | ||
| RUN /R-dyntrace/bin/R -s -e "install.packages(c('devtools', 'string', 'lintr', 'dplyr', 'covr','pryr'), repos = 'http://cran.rstudio.com/')" | ||
| WORKDIR /home/instrumentr | ||
| ADD . /home/instrumentr | ||
| # Install instrumentr | ||
| RUN cd /home/instrumentr && xvfb-run --auto-servernum --server-num=1 make R="/R-dyntrace/bin/R" clean document build check install | ||
| CMD /bin/bash | ||
| ENTRYPOINT /R-dyntrace/bin/R R --file=test1.R --no-save --debugger=gdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slave is deprecated wch/r-source@f1ff49e