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
cmdline in Windows, run the rstudio withdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v %cd%:/home/rstudio sumankhanal/rakurstudioORdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v %cd%:/home/rstudio sumankhanal/rustrakurstudiowhich will mount the current working directory to/home/rstudiowithin container -
In
PowerShellline in Windows, run the rstudio withdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v ${PWD}:/home/rstudio sumankhanal/rakurstudioORdocker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v ${PWD}:/home/rstudio sumankhanal/rustrakurstudiowhich will mount the current working directory to/home/rstudiowithin container -
In
Git Bash Shellin 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/rakurstudioORMSYS_NO_PATHCONV=1 docker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v $(pwd):/home/rstudio sumankhanal/rustrakurstudiowhich will mount the current working directory to/home/rstudiowithin container -
Visit
http://localhost:8787/in your browser and log in with the<username>andpasswordyou 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
--rmflag 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.