qaecology / boab

Files for administering Boab server
0 stars 0 forks source link

Maxent.jar location #3

Closed cvisintin closed 5 years ago

cvisintin commented 5 years ago

https://github.com/qaecology/boab/blob/7baf111575d9622d3a35f587b0cc98748b23d7c9/Dockerfile#L189-L190

The maxent file has to be manually moved to the dismo installation directory...I am having trouble knowing where that is in the image. Should it be moved in the user creation script?

goldingn commented 5 years ago

Try this:

RUN R -e 'install.packages(c("dismo"))' 
RUN R -e 'file.copy("Maxent/maxent.jar", file.path(system.file(package = "dismo"), "java/maxent.jar"))'
jdyen commented 5 years ago

Yep, that worked. Just needed to copy from /opt/Maxent (the local copy of Maxent).