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 1 commit
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ 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 mal the local file ls.p6 (in this directory) to the remote
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does mal mean here? It sounds like a typo, but I may be wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally typo. Should be map. Will fix that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Volume is not really needed. It's just a convenient place to put scripts. You can create new volumes with -v all the time.

file using the shared directory /home/perl6/app


# 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/