Deploying PSGI Applications using RHSCL Docker Containers

Red Hat Software Collections (RHSCL) 2.0 brings Perl 5.20 as a Docker image. This allows you to deploy Perl applications easily.

The basic idea is to combine your application code from Git tree and Red Hat’s rhscl/perl-520-rhel7 base image into an application image that will run your application in mod_perl environment. Your application can either be a simple Common Gateway Interface (CGI) script or a full-fledged Perl Web Server Gateway Interface (PSGI) application.

Following this step-by-step procedure will show you how to deploy a simple pastebin-like web service implemented as a PSGI application.

The Base Image

First we install docker package and start the docker service:

Continue reading “Deploying PSGI Applications using RHSCL Docker Containers”


Join Red Hat Developers, a developer program for you to learn, share, and code faster – and get access to Red Hat software for your development.  The developer program and software are both free!