forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Downgrade R to 3.4.3 * Upgrade Python2 version to fix libffi-related pip install failure * Bump docker image version * Provide version for base docker when building R / python images * Make pyenv work with latest conda * Install R dependencies using conda
- Loading branch information
Showing
5 changed files
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -15,16 +15,17 @@ | |
# limitations under the License. | ||
# | ||
|
||
FROM palantirtechnologies/circle-spark-base | ||
FROM palantirtechnologies/circle-spark-base:0.2.3 | ||
|
||
USER root | ||
|
||
### Install R | ||
RUN apt-get update \ | ||
&& apt-get install r-base r-base-dev qpdf \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& chmod 777 /usr/local/lib/R/site-library \ | ||
&& /usr/lib/R/bin/R -e "install.packages(c('devtools'), repos='http://cran.us.r-project.org', lib='/usr/local/lib/R/site-library'); devtools::install_github('r-lib/[email protected]', lib='/usr/local/lib/R/site-library'); install.packages(c('knitr', 'rmarkdown', 'e1071', 'survival', 'roxygen2', 'lintr'), repos='http://cran.us.r-project.org', lib='/usr/local/lib/R/site-library')" | ||
ENV R_HOME=/usr/lib/R | ||
# Install R and SparkR dependencies | ||
RUN $CONDA_BIN install --yes --channel r \ | ||
r-base=3.4.3 r-knitr r-rmarkdown r-e1071 r-survival r-testthat r-lintr r-roxygen2 r-devtools | ||
|
||
# Install qpdf (used for SparkR documentation, required in R tests) | ||
USER root | ||
RUN apt-get update && apt-get install qpdf | ||
USER circleci | ||
|
||
# Add conda-installed R to path | ||
ENV PATH="$CONDA_ROOT/bin:$PATH" | ||
ENV R_HOME=$CONDA_ROOT/lib/R |