This container sets up a FastRWeb server that allows you to generate output via R based on predetermined set of scripts and data by using basic GET calls.
The following extra features are provided:
http://localhost:PORT/cgi-bin/rebootRserve.sh/var/FastRWeb/logs/: R log files (make sure to mount as read/write)/var/FastRWeb/data/: contains csv's or other data to load (mount readonly)/var/FastRWeb/web.R/: contains R scripts that can be executed via a GET call (mount readonly)
startup.R (optional): use this script to setup global data (like loading packages & data)common.R (optional): similar to the file above, but executed at the start of every call instead80
http://localhost:PORT/cgi-bin/R/ping will call the called under /var/FastRWeb/web.R/ping.RStarting the container:
docker run \
--name rserver \
-p 8080:80 \
--mount "type=bind,src=C:\Users\tuur\git\rwebtool\server\logs,target=/var/FastRWeb/logs" \
--mount "type=bind,src=C:\Users\tuur\git\rwebtool\server\data,target=/var/FastRWeb/data,readonly" \
--mount "type=bind,src=C:\Users\tuur\git\rwebtool\server\web.R,target=/var/FastRWeb/web.R,readonly" \
tuur29/rwebtool-rserver
Creating a new build of the container: docker build -f docker/rserver.Dockerfile . -t tuur29/rwebtool-rserver
Please not this command should be run from inside the project root.
Content type
Image
Digest
sha256:040e4255b…
Size
442.8 MB
Last updated
over 1 year ago
docker pull tuur29/rwebtool-rserver