You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building a Docker image from a Dockerfile created with pracac requires R to be installed on the host system. This may not always be desirable, in the case where you'd like to distribute the source code to others to build who may not have R installed for building the package targz.
An alternative approach could copy relevant R package source folders into the container and use devtools to build:
# FROM whatever# RUN Rscript -e install deps, etc.# Install devtools: not a pkg dep, but needed to install in the docker buildRUN Rscript -e 'BiocManager::install(c("devtools"))'# Copy the source into the root of the containerRUN mkdir -p /src
COPY DESCRIPTION NAMESPACE .Rbuildignore /src
COPY R /src/R
COPY man /src/man
COPY inst /src/inst
COPY data /src/data
COPY vignettes /src/vignettes
# Build the R packageRUN Rscript -e 'devtools::install("/src", dependencies=FALSE)'# Continue COPYing and add ENTRYPOINT, etc.
I'm okay closing this issue as well -- pracpac is meant to be used by package developers, who in every case will have R installed on their system. The thought here is for downstream consumers who may not, who'd like to build the image without a pre-build source tar.gz.
The text was updated successfully, but these errors were encountered:
Opening this but feel free to close @vpnagraj.
Building a Docker image from a Dockerfile created with pracac requires R to be installed on the host system. This may not always be desirable, in the case where you'd like to distribute the source code to others to build who may not have R installed for building the package targz.
An alternative approach could copy relevant R package source folders into the container and use devtools to build:
I'm okay closing this issue as well -- pracpac is meant to be used by package developers, who in every case will have R installed on their system. The thought here is for downstream consumers who may not, who'd like to build the image without a pre-build source tar.gz.
The text was updated successfully, but these errors were encountered: