Joomla 4 cli core:install doesn't work in Docker #43434
Replies: 6 comments
-
please follow this https://docs.joomla.org/J4.x:Joomla_CLI_Installation |
Beta Was this translation helpful? Give feedback.
-
Hi,
Because you use Docker image please follow the information from the image description. https://hub.docker.com/_/joomla For bugs in the image please reaport https://github.com/joomla-docker/docker-joomla/ |
Beta Was this translation helpful? Give feedback.
-
@Fedik so imho it's not a bug more a doc issue |
Beta Was this translation helpful? Give feedback.
-
Yes, I think this is a documentation issue. The page provided by @alikon J4.xJoomla CLI Installation is what I was trying to do. Tested the above documentation page with dockerhub image joomla:4.3.1 and the following bash script, works perfect.
Docker noteJust to clarify That statement is not correct, the DockerFile only extracts the zip file and gives you a ready installation (unless the volume is already full then it skips installation).
I'm not even sure if it does anything with the ENV it asks for on the dockerhub page. But as you say that's an issue for: https://github.com/joomla-docker/docker-joomla/ My above code could be run from a custom dockerfile instead of docker-compose ConclusionYes, this is a documentation issue with the page: https://docs.joomla.org/J4.x:CLI_Update#Installing_Joomla.21_via_the_CLI As for a solution, I'm not sure if it should be removed, as I like the idea of a json file. |
Beta Was this translation helpful? Give feedback.
-
not an core issue |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce the issue
joomla:4.3.1
from Docker Hub.php cli/joomla.php core:install
inside the container, following the instructions outlined in the Joomla CLI Update documentation.Expected result
The Joomla installer should run successfully.
Actual result
The output displays:
Install Joomla to run cli commands
. This behavior is expected according to the code found in cli/joomla.php on line 46:System information
joomla:4.3.1
from Docker HubAdditional comments
According to the Installing Joomla via the CLI documentation, it should be possible to install Joomla using Joomla cli. However, this is currently not working because the
cli/joomla.php
file checks for the existence ofconfiguration.php
before attempting the installation. This check prevents the installation process when trying to create theconfiguration.php
file in the first place.Beta Was this translation helpful? Give feedback.
All reactions