Skip to content

Docker image with Raku and Rust within RStudio for reproducible work.

License

Notifications You must be signed in to change notification settings

sumanstats/rakurstudio

Repository files navigation

Raku, Rust and Tidyverse

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.

Raku Rust License: MIT Github Stars

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.

How to run this image?

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 with docker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v %cd%:/home/rstudio sumankhanal/rakurstudio OR docker 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 with docker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v ${PWD}:/home/rstudio sumankhanal/rakurstudio OR 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

  • In Git Bash Shell in Windows, run the rstudio with MSYS_NO_PATHCONV=1 docker run -d -p 8787:8787 -e PASSWORD=<yourpasswordhere> --name <username> --rm -v $(pwd):/home/rstudio sumankhanal/rakurstudio OR MSYS_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> and password 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.

License

The Dockerfiles in this repository are licensed under MIT license.

About

Docker image with Raku and Rust within RStudio for reproducible work.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published