Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds shared volume #6

Merged
merged 2 commits into from
Dec 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/