Skip to content

Commit

Permalink
Merge pull request #6 from JJ/master
Browse files Browse the repository at this point in the history
Adds shared volume
  • Loading branch information
moritz authored Dec 23, 2016
2 parents a7548f1 + 64d00cb commit 7724855
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM buildpack-deps:jessie-scm
MAINTAINER Rob Hoelz

RUN groupadd -r perl6 && useradd -r -g perl6 perl6
WORKDIR /home/perl6

ENV rakudo_version=2016.11

Expand Down Expand Up @@ -29,3 +30,7 @@ RUN buildDeps=' \
ENV PATH=$PATH:/usr/share/perl6/site/bin

CMD ["perl6"]

#Mount point
RUN mkdir /home/perl6/app
VOLUME /home/perl6/app
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ Simply running a container with the image will launch a Perl 6 REPL:
You can also provide perl6 command line switches to `docker run`:

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

or run your own files using the container's interpreter

$ docker run -t -v `pwd`:/home/perl6/app rakudo-star /home/perl6/app/ls.p6

where we map the local file ls.p6 (in this directory) to the remote
file using the shared directory mountpoint '/home/perl6/app'

You can actually use any internal directory, as long as it
exists. `/home/perl6/app` is just there as a convenient place to do it.


# Contributing/Getting Help

Expand Down
3 changes: 3 additions & 0 deletions ls.p6
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env perl6

say q:x/ls -a/

0 comments on commit 7724855

Please sign in to comment.