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/
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.
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
Many Perl 6 developers are present on #perl6 on Freenode
Issues for Rakudo are tracked on https://github.com/rakudo/rakudo/issues