Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UMR-ASTRE
mapMCDA
Commits
d0220d84
Commit
d0220d84
authored
May 23, 2021
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dockerfiles/Readme.md
View file @
d0220d84
# 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
...
...
dockerfiles/mapmcda/Dockerfile
View file @
d0220d84
...
...
@@ -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::
in
s
ta
ll_local()'
LABEL
ma
inta
iner="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
8
0
EXPOSE
383
8
CMD
R -e "options('shiny.port'=8
0
,shiny.host='0.0.0.0');library(mapMCDA);shiny::runApp(system.file(\"interface\", package = \"mapMCDA\"), launch.browser = FALSE)"
CMD
R -e "options('shiny.port'=
383
8,shiny.host='0.0.0.0');library(mapMCDA);shiny::runApp(system.file(\"interface\", package = \"mapMCDA\"), launch.browser = FALSE)"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment