kannan-raveendran-nair / pega-pe-docker

Pega Personal Edition made docker deployable
14 stars 17 forks source link
docker docker-compose pega pega-personal-edition pega-prpc pegasystems

Docker for PEGA Personal Edition

Note: This project currently only supports Pega 8.3 personal edition (this might work with older verisons, but not guaranteed).

This project is intended to help PEGA enthusiasts deploy and experiment PEGA PRPC Personal Edition using docker.

This project has been tested against Pega PRPC Personal Edition 8.3 version on a Manjaro 5.3.15 host OS. Those of you who intend to run this on a windows host might have to do some additonal setup in your docker installation to support linux images(these are easily searchable on the internet). These modifications are not specific to this project, but something that has to be done to run linux based docker images on Windows host OS.

"Pega PRPC Personal Edition" will be refered to as "PEGA-PE" for the sake of simplicity in rest of the project & documentation.

Getting Started

Follow these instruction to setup PEGA-PE & backend Postgresql as docker containers.

Prerequisites

You would need the following requisites to use this project

Hardware Requirements

Memory : 4 GB minimum / 8 GB preferred

Active internet connection with decent speed. Installation dowloads around 500-700MB of data - and will vary from machine to machine based on the packages already installed and how up-to-date the machine is.

Atleast 5-7 GB of free disk space [most of which will be consumed by postgresl container volume]

Software Requirement

Host OS should have docker & docker-compose installed. This can be installed easily using the instructions below:

Install Docker

Install Docker Compose

OS Requirement

Though the project is tested on an Ubuntu flavour, docker builds should work the same on most host operating systems. Windows users will have to make some additional modifications to the docker installation to support linux images.

Files

PEGA PRPC Personal Edition zip file downloaded from PEGA website

Build Docker Image

This project only provides you with a Dockerfile which can be used to build an image for yourself. Since the build includes using propreitary files provided by Pegasystems, this images shouldn't be hosted on a public platform or distributed to others without prior consent from Pegasystems.

1. Get the project

2. Prepare for docker image build of postgresql

3. Prepare for docker image build of pega web app

4. Build docker images for postgresql & pega web app

Start & Stop docker containers

  1. Issue the below command to start both pega web app & postgresql and send to background
    docker-compose up -d
  2. Issue the below command to stop both pega web app & postgresql
    docker-compose stop

Additional command references

If you have to re-build the image for postgresql with modified Dockerfile, you might notice that the stale image built previously is being picked again and again.

To force re-creating the container again use

docker-compose up --force-recreate postgresql-pega-backend

To remove all unused images use

docker system prune

To remove all unused volumes use the below. You will notice that multiple build & run will fill up your harddisk very fast. This is because of the approx.5GB volumes consumed by each build.

docker volume prune

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under Attribution-NonCommercial 4.0 International. You are free to copy, modify & redistribute this code for non-commercial purposes.

Use of Pega Personal Edition itself is licensed by Pegasystems and licensing details can be found in the zip file downloaded in Prerequisites/Files