postgresql - Issues with R packages install inside Postgres Docker Image -
i have postgres dockerfile works fine. managed install r-3.3.3 inside image via dockerfile , found containers work correctly. when tried install packages via following entries, image creation succeeds container exits right away normal status. here new entries added changed behavior. missing?
run r -e "install.packages('devtools',repos='http://cran.us.r-project.org')" && r -e "install.packages('rpostgresql',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('hash',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('nloptr',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('dbi',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('rcpp',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('bh',repos='http://cran.us.r-project.org')"
it worked fine. incorrect docker file. after got together, started working fine.
run apt-get install -y --auto-remove \ default-jdk \ libcurl4-openssl-dev \ build-essential \ gfortran \ zlib1g \ zlib1g-dev \ libbz2-dev \ liblzma-dev \ libpcre3-dev \ postgresql-9.6-plr \ libpq-dev \ libssl-dev \ && ld_library_path=/usr/lib/apt/methods/bzip2 apt-get -y install wget \ && wget -o /r-3.3.3.tar.gz https://cran.r-project.org/src/base/r-3/r-3.3.3.tar.gz \ && cd / \ && gunzip /r-3.3.3.tar.gz \ && tar xvf r-3.3.3.tar \ && cd r-3.3.3 \ && ./configure --prefix=/usr --with-readline=no --with-x=no \ && make \ && make install \ && r -e "install.packages('devtools',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('rpostgresql',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('hash',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('nloptr',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('dbi',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('rcpp',repos='http://cran.us.r-project.org')" \ && r -e "install.packages('bh',repos='http://cran.us.r-project.org')" \ && cd .. \ && rm r-3.3.3.tar \ && rm -rf r-3.3.3 \ && apt purge -y --auto-remove \ default-jdk \ libssl-dev \ libpq-dev \ libpcre3-dev \ liblzma-dev \ libbz2-dev \ zlib1g-dev \ libcurl4-openssl-dev \ build-essential \ wget \ && rm -f /tmp/rtmp* \ && apt-get -y autoremove
Comments
Post a Comment