Sign inSign up

jjmerelo/perl-io-socket-ssl

By jjmerelo

•Updated almost 8 years ago

Correct configuration for a Perl image based on Debian slim with IO::Socket::SSL ready to run.

Image
0

2.4K

jjmerelo/perl-io-socket-ssl repository overview

⁠Docker image with Perl and IO::Socket::SSL

An image which includes and runs this library, along with Net::SSLeay, correctly.

⁠Use

Use in pretty much the same way as an executable:

docker run -it --rm jjmerelo/perl-io-socket-ssl -e "print @INC"

Although it's probably more useful as a base for other images that need an usable version of IO::Socket::SSL⁠ and Net::SSLeay⁠

⁠Motivation

After switching from an Ubuntu base to a Debian Slim base to reduce the footprint of my image, everything stopped working. It took me a good while to come up with this solution, which includes

  • The Perl version (5.24) for which Net::SSLeay was compiled. Also, it was compiled for the threaded version, so the base includes that too.
  • Debian packages install libraries to all kind of non-standard places. In the default perl configurarion, it includes -I switches to include all those directories.
  • Also, IO::Socket::SSL needs Net::SSLeay during runtime, it's not actually installed or declared as a dependency. So this image includes that too.

Tag summary

Content type

Image

Digest

Size

78.2 MB

Last updated

almost 8 years ago

docker pull jjmerelo/perl-io-socket-ssl