perl6/docker

Name: docker

Owner: Perl 6

Description: Docker files for Perl 6

Created: 2015-03-24 14:34:40.0

Updated: 2018-05-07 17:33:40.0

Pushed: 2018-05-07 17:33:39.0

Homepage: null

Size: 26

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.