Commit d0220d84 authored by Facundo Muñoz's avatar Facundo Muñoz ®️
Browse files

Docker image mapmcda. Try mapMCDA in Docker.

parent 3bbc058d
Pipeline #33527 failed with stages
in 8 minutes and 31 seconds
# Try mapMCDA
Run mapMCDA in a Docker container, mapping the current directory into the directory `ext` in the container _home_.
In Windows:
docker run -d --rm -p 3838:3838 --name mapmcda -v ${PWD}:/root/ext registry.forgemia.inra.fr/umr-astre/mapmcda/mapmcda
In Linux/MacOS:
docker run -d --rm -p 3838:3838 --name mapmcda -v $(pwd):/root/ext registry.forgemia.inra.fr/umr-astre/mapmcda/mapmcda
Navigate to `localhost:3838` in a web browser.
After finishing working with mapMCDA, run
docker kill mapmcda
to stop the container.
# Testing environments for mapMCDA
Under `test_environment` we store Dockerfiles defining three computing environments
......
......@@ -4,12 +4,15 @@
# Adapted from:
# https://hub.docker.com/r/colebrokamp/rize/dockerfile
FROM mapmcda_testenv
FROM registry.forgemia.inra.fr/umr-astre/mapmcda/mapmcda_testenv:release
RUN R -e 'remotes::install_local()'
LABEL maintainer="Facundo Muñoz facundo.munoz@cirad.fr"
RUN rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN R -e 'remotes::install_local()' \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds \
&& mkdir /root/ext \
&& ln -s /builds/umr-astre/mapMCDA/inst/cartography/CMR /root/CMR
EXPOSE 80
EXPOSE 3838
CMD R -e "options('shiny.port'=80,shiny.host='0.0.0.0');library(mapMCDA);shiny::runApp(system.file(\"interface\", package = \"mapMCDA\"), launch.browser = FALSE)"
CMD R -e "options('shiny.port'=3838,shiny.host='0.0.0.0');library(mapMCDA);shiny::runApp(system.file(\"interface\", package = \"mapMCDA\"), launch.browser = FALSE)"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment