-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/rel-6.5.2225'
- Loading branch information
Showing
2 changed files
with
6 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
FROM rstudio/r-base:3.6-bionic | ||
ARG RPROXY_CREDS | ||
ARG HOMEDIR=/home/jenkins | ||
ARG R_LIB | ||
ARG R_LIBS | ||
ENV R_LIB=${HOMEDIR}/R/master | ||
ENV R_LIBS=${R_LIB} | ||
ARG USER=997 | ||
ARG GROUP=991 | ||
ENV HOMEDIR=${HOMEDIR} | ||
ENV R_LIBS=${HOMEDIR}/rlibs | ||
USER root | ||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG=en_US.UTF-8 | ||
RUN apt-get update && apt-get install build-essential libtiff5-dev libfribidi-dev libfontconfig1-dev libgit2-dev libssl-dev libcurl4-gnutls-dev libxml2-dev libsodium-dev -y | ||
# Add the user/group jenkins | ||
RUN groupadd --gid ${GROUP} jenkins \ | ||
&& useradd --uid ${USER} --gid jenkins --shell /bin/bash --create-home -d ${HOMEDIR} jenkins | ||
COPY --chown=jenkins:jenkins . ${HOMEDIR} | ||
# Copy only the minimal amount of the package to install dependencies | ||
COPY --chown=jenkins:jenkins ./DESCRIPTION ./Makefile ${HOMEDIR} | ||
WORKDIR ${HOMEDIR} | ||
RUN echo 'local({\n\ | ||
r <- getOption("repos")\n\ | ||
r["Nexus"] <- "https://'${RPROXY_CREDS}'@ui.nexus.crint.net/repository/rcrunch/"\n\ | ||
options(repos = r)\n\ | ||
})'> /usr/lib/R/etc/Rprofile.site | ||
RUN make install-ci | ||
USER jenkins | ||
RUN mkdir ${R_LIBS} && make install-ci |