Skip to content

Repository files navigation

Rakudo Star

Build Status

This Docker image includes Rakudo Star, which is a Perl 6 compiler distribution that includes MoarVM virtual machine, Rakudo Perl 6 compiler, a suite of modules that users may find useful, and language documentation.

Project homepage: https://rakudo.org

GitHub repository: https://github.com/rakudo/star

The Dockerfile responsible: https://github.com/perl6/docker/tree/master/Dockerfile

Perl 6 Language Specification: https://github.com/perl6/roast

Perl 6 Language Documentation: https://docs.perl6.org/

Build

You can build an image from this Dockerfile as indicated below:

$ docker build -t rakudo-star /path_to_dockerfile/

In addition, you can specify the version of Rakudo Star that you want at build time:

$ docker build --build-arg rakudo_version=${DESIRED_VERSION} -t rakudo-star /path_to_dockerfile/

If no version is specified, it will default to the version listed in the Dockerfile. It is recommended that you use the default version.

Usage

Simply running a container with the image will launch a Perl 6 REPL:

$ docker run -it rakudo-star
> say 'Hello, Perl!'
Hello, Perl!

You can also provide perl6 command line switches to docker run:

$ docker run -it rakudo-star perl6 -e 'say "Hello!"'

In addition, you can mount a directory from the host within a container:

$ docker run -it -v $HOME/my_p6_projects/:/mount_location/ rakudo-star /bin/bash

Then, you can run your scripts from inside the container:

# perl6 /mount_location/my_p6_script.p6

Contributing/Getting Help

Many Perl 6 developers are present on #perl6 on Freenode

Issues for Rakudo are tracked on https://github.com/rakudo/rakudo/issues

About

Docker files for Perl 6

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages