Raku is a powerful scripting, OOP and functional programming language with robust regex grammars. This image enables to use Raku with the comfort of RStudio server.
This repository builds three images in DockerHub.
image | description |
---|---|
rakurstudio | Docker image with R, tidyverse and Raku within RStudio® for reproducible work. |
rustrakurstudio | Contains Rust and cargo in addition to the above image. |
swig-python-boost | Contains Python 3, pybind11 and Boost.Python for wrapping C/C++ libraries in Python but without RStudio. |
Rust and cargo
will be useful in building R packages containing rust
code.
To get RStudio® session with Raku
, first download Docker Desktop and follow their instructions (like for WSL). Then pull the image within Docker Desktop under Images
from Hub:
-
In
cmd
line in Windows, run the rstudio withdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v %cd%:/home/rstudio sumankhanal/rakurstudio
ORdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v %cd%:/home/rstudio sumankhanal/rustrakurstudio
which will mount the current working directory to/home/rstudio
within container -
In
PowerShell
line in Windows, run the rstudio withdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v ${PWD}:/home/rstudio sumankhanal/rakurstudio
ORdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v ${PWD}:/home/rstudio sumankhanal/rustrakurstudio
which will mount the current working directory to/home/rstudio
within container -
In
Git Bash Shell
in Windows, run the rstudio withMSYS_NO_PATHCONV=1 docker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v $(pwd):/home/rstudio sumankhanal/rakurstudio
ORMSYS_NO_PATHCONV=1 docker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v $(pwd):/home/rstudio sumankhanal/rustrakurstudio
which will mount the current working directory to/home/rstudio
within container -
Visit
http://localhost:8787/
in your browser and log in with the<username>
andpassword
you set. NB: Setting a password is now REQUIRED. Container will error otherwise. -
Once you are done with the container, go to Docker Desktop and stop the container. Because of
--rm
flag while running container, stopping will remove the container.
To read more on usage, go here.
The Dockerfiles in this repository are licensed under MIT license.