Skip to content

Commit

Permalink
Revert Rscript for 'install.packages' line and add system level depen…
Browse files Browse the repository at this point in the history
…dencies to install: 'librdf0-dev' for redland and 'libjq-dev' for jqr
  • Loading branch information
doulikecookiedough committed Dec 17, 2024
1 parent 831e1fe commit 82ed3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Docker/metadig-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ COPY target/metadig-engine-$ENGINE_TAG.jar metadig-engine-$ENGINE_TAG.jar
COPY Docker/metadig-worker/solr solr/

RUN apt-get update
RUN apt-get install -y g++ git r-base r-base-dev r-base-core r-doc-html libc6-dev libssl-dev libxml2 libxml2-dev libcurl4-openssl-dev python3 python3-pip python3-dev openjdk-17-jdk
RUN apt-get install -y g++ git r-base r-base-dev r-base-core r-doc-html libc6-dev libssl-dev libxml2 libxml2-dev libcurl4-openssl-dev librdf0-dev libjq-dev python3 python3-pip python3-dev openjdk-17-jdk

# Set Java environment variables
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV PATH="$PATH:$JAVA_HOME/bin"

# Install required R packages
RUN echo 'options(repos = c(CRAN = "http://cran.rstudio.com"))' >> /usr/lib/R/etc/Rprofile.site
RUN Rscript -e "install.packages(c('remotes', 'stringr', 'jsonlite', 'dataone', 'datapack', 'EML'))"
RUN Rscript -e "install.packages(c('remotes', 'stringr', 'jsonlite'))"
RUN Rscript -e "remotes::install_github('NCEAS/metadig-r', ref = 'v.0.2.0')"
RUN Rscript -e "remotes::install_github('NCEAS/metadig-rake', ref = 'develop')"

Expand Down

0 comments on commit 82ed3ae

Please sign in to comment.