docker-joomla icon indicating copy to clipboard operation
docker-joomla copied to clipboard

data image

Open pollen8 opened this issue 10 years ago • 5 comments

would it be possible to install the joomla files into a mounted volume? that way we can work on the Joomla code from the host machine

pollen8 avatar Aug 26 '15 14:08 pollen8

It should be possible using Docker's configuration routines. The image structure is based on the WordPress image, so I would think that the guide at http://www.sitepoint.com/how-to-use-the-official-docker-wordpress-image/ (which has a section talking about volume mapping) should apply here too without any adjustment to the Dockerfile.

mbabker avatar Aug 26 '15 15:08 mbabker

Should be possible to update actually image? Exspecially to test new features!!!

RedsAnDev avatar Nov 12 '15 16:11 RedsAnDev

I've got the same question as @RedsAnDev, how would I go about upgrading to a new release of Joomla with this docker image when I have mounted the /var/www/html to a directory on the host system?

In reading the Dockerfile, the contents of /var/www/html are only copied over if the files don't exist. When Joomla 3.7.5 or 3.8 comes out, its not clear how I would get the fixes / updates of a new image to "overwrite" my current hosted directory contents.

Thanks

Update: In reading the docs for the Bitnami docker image I see in their "Upgrade this application" section, that the mapped host directory should be backed up, the new image should be pulled and then the upgrade has to be run using the "Upgrade" feature in Joomla itself.

Is this the expectation for this docker image as well?

jsivak avatar Aug 03 '17 18:08 jsivak

For now you'd just update Joomla as you would a normal web hosted install. I would suggest that it might be too complicated to try and not make the entire /var/www/html directory a volume because of the nature of Joomla and how updates need to be performed with specific logic in mind (just replacing the files without performing the extra steps run in the install routine can be harmful to your site).

So it should be safe to update the image to update the outside dependencies (*AMP server stack) without messing up your actual Joomla site.

mbabker avatar Aug 03 '17 19:08 mbabker

Understood. Was "hoping" that the Docker image would be able to "manage" more of the upgrade rather than going thru the Joomla Web upgrade steps via the website.

No worries though.. I've not been let down by the Joomla upgrade processes yet.. ;)

jsivak avatar Aug 03 '17 19:08 jsivak

Well, I know this is a very old thread, and I assume all have moved on.

Mounting any thing into a Docker container is normal and easy these days... let me know if anything still remains unclear directly related to the current Joomla Docker image.

Llewellynvdm avatar Sep 10 '22 13:09 Llewellynvdm