Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Created March 25, 2020 14:09
Show Gist options
  • Select an option

  • Save jonashackt/48a0800cbef1f1b0614201da4d18dec4 to your computer and use it in GitHub Desktop.

Select an option

Save jonashackt/48a0800cbef1f1b0614201da4d18dec4 to your computer and use it in GitHub Desktop.
How to extract the fully working Liferay 7 DXP bundle from the hub.docker.com/r/liferay/dxp Docker Image
# There's an official CE and DXP Liferay Docker image availabel on Docker Hub.
# The problem with DXP: The liferay bundle .tar.gz isn't downloadable from Sourceforge or GitHub - and even if you have
# a subscription and access to Liferay Enterprise Webportal https://customer.liferay.com/en/downloads
# there are maybe already newer Releases, that are only available in fresh Docker images
# But you can extract a liferay bundle .tar.gz from those Docker images! Here's how:
# Run a Docker Container with the newest DXP image from https://hub.docker.com/r/liferay/dxp , that you want to have as a bundle
# ATTENTION: Watch out for build numbers! A 7.2.10-dxp-4-202003240401 means it is the latest version 7.2.10 Fix Pack 4
docker run liferay/dxp:7.2.10-dxp-4-202003240401
# Get the containerId with
docker ps
# then bash into the container and use root user! Otherwise you can't archive a tar file or install ssh/scp
docker exec -it --user root containerId bash
# Archive the /opt/liferay contents, which are the same as inside a .tar.gz liferay bundle
tar czf liferay_dxp_7.2.10-dxp-4.tar.gz liferay/
# Install SSH/SCP to finally copy file to desired destination (you may need to configure a HTTP_PROXY & HTTPS_PROXY before)
apk update
apk add openssh
# Copy liferay_dxp_7.2.10-dxp-4.tar.gz to desired location
scp liferay_dxp_7.2.10-dxp-4.tar.gz liferay@your.server.lan:/opt/desiredLiferayDir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment