Skip to content

Edits and revisions to read-me's content. #12

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

Closed
wants to merge 2 commits into from
Closed
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
15 changes: 10 additions & 5 deletions perl/README-content.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# What is Perl?
Perl is a family of high-level, general-purpose, interpreted, dynamic programming language. The Perl languages borrow freatures from other programming languages including C, shell scripting (sh), AWK, and sed.

Perl is a family of high-level, general-purpose, interpreted, dynamic programming
languages. The Perl languages borrow features from other programming languages, including
C, shell scripting (sh), AWK, and sed.

> [wikipedia.org/wiki/Perl](https://en.wikipedia.org/wiki/Perl)

# How to use this image

## Create a `Dockerfile` in your perl app project.
## Create a `Dockerfile` in your Perl app project.

FROM perl:5.20
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "perl", "./your-daemon-or-script.pl" ]

Then build and run the docker image.
Then, build and run the Docker image.

docker build -t my-perl-app
docker run -it --rm --name my-running-app my-perl-app

## Run a single perl script.
## Run a single Perl script.

For many single file projects, it may not be convenient to write a `Dockerfile` for your project. In such cases, you can run a perl script by using the perl docker image directly.
For many simple, single file projects, you may find it inconvenient to write a complete
`Dockerfile`. In such cases, you can run a Perl script by using the Perl Docker image
directly.

docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp perl:5.20 perl your-daemon-or-script.pl
3 changes: 2 additions & 1 deletion perl/README-short.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Perl is a family of high-level, general-purpose, interpreted, dynamic programming language.
Perl is a family of high-level, general-purpose, interpreted, dynamic programming
languages.