Sign inSign up

simontim/liferay-openshift

By simontim

Updated almost 9 years ago

An Openshift-ready Liferay Image

Image
1

100K+

simontim/liferay-openshift repository overview

An Openshift-Ready Liferay Image for DevOps

Docker Pulls

This image is based on a demonstration installation of the well-known Liferay CMS portal. It is a really good image to start with implementing DevOps for a Liferay Portal. I used "Bundled with tomcat" https://www.liferay.com/it/downloads with the embedded database (hypersonic).

To build this image put the unzipped "bundle" in the same folder of the Dockerfile and build it.

Directory structure:

  1. my-liferay-demos
  2. |-- Dockerfile
  3. |-- liferay-ce-portal-tomcat-7.0-ga4-20170613175008905

and then

 docker build -t my_user/liferay-openshift:1.0 .

for example.

For Openshift usage

Having a quick start Liferay portal instance in an Openshift platform is very easy: Add to project --> Deploy image --> simontim/liferay-openshift and then create a route for the application.

DOCKERFILE

FROM openjdk:8-jdk

MAINTAINER Simone e Vittorio, [email protected]

#Creo l'utente con cui girerà il portale (non root per ragioni di sicurezza)

RUN useradd --user-group --create-home --shell /bin/false liferay

#Aggiungo il portale già unzippato

ADD liferay-ce-portal-tomcat-7.0-ga4-20170613175008905/liferay-ce-portal-7.0-ga4 /portal

#Assegno i permessi necessari per Openshift

RUN chown -R liferay:liferay /portal/*

RUN chmod +x /portal/tomcat-8.0.32/bin/*

RUN chgrp -R 0 /portal RUN chmod -R g+rwX /portal

#Espongo la porta predefinita per Tomcat

EXPOSE 8080

#Passo all'utente creato per il portale

USER liferay

#Faccio partire il portale

ENTRYPOINT ["/portal/tomcat-8.0.32/bin/catalina.sh", "run"]

Tag summary

Content type

Image

Digest

Size

1.8 GB

Last updated

almost 9 years ago

docker pull simontim/liferay-openshift