AdamSpannbauer / codeclimate-R

MIT License
0 stars 0 forks source link

create Dockerfile #2

Closed AdamSpannbauer closed 6 years ago

AdamSpannbauer commented 6 years ago

Resources:

AdamSpannbauer commented 6 years ago

Note: file permissions are copied in Docker build. codeclimate-R needs user execute permissions added before build

chmod +x codeclimate-R
AdamSpannbauer commented 6 years ago

I need to review docs on including additional packages in docker builds. I thought this RUN instruction was correctly handling package installs, but appears it's not. Attempting to run resulting docker image runs into.

Error in library(lintr) : there is no package called ‘lintr’
Execution halted

@bmewing have you used rocker in a case like this before?

AdamSpannbauer commented 6 years ago

nvm, think I found the cause in the build output.

ERROR: dependency ‘httr’ is not available for package ‘lintr’
AdamSpannbauer commented 6 years ago

For posterity. The issue around lintr + httr are the same as this issue. Instead of manually installing libcurl starting from rocker/r-base I'm attempting to switch to rocker/rstudio and see if that fixes install problems.

AdamSpannbauer commented 6 years ago

this fixed the lintr install problem. Closing this issue and opening up more specific issues for Dockerfile moving forward