Closed docb7 closed 4 years ago
I modified the Dockerfile
then rebuild the image
@ulfw please submit a PR if you have solved this issue.
Thanks, Samuel
not that easy because the fork that is used for docker is a few commits ahead
Hi, thanks for the effort. Unfortunately it did not seem to work. The image build is without any problems, and the container goes up, but when I open phpservermonitor I still get the Message
"Fatal error: No dependencies found in vendor dir. Did you install the dependencies? Please run "php composer.phar install". in /var/www/html/src/bootstrap.php on line 73".
When I do so by
docker-compose exec phpservermonitor php composer.phar install
I get the next error message:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 14 installs, 0 updates, 0 removals
Failed to download jaxl/jaxl from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run php --ini to show them.
Now trying to download from source
- Installing jaxl/jaxl (v3.1.0): Cloning 27aa43c460
[RuntimeException]
Failed to clone https://github.com/jaxl/JAXL.git, git was not found, check that it is installed and in your PATH env.
sh: 1: git: not found
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...```
Maybe (but as you might have guessed, I am really no expert ;-), that has something to do with this issue: https://github.com/phpservermon/phpservermon/issues/901 ?
yes, its almost the same
the process of composer you ran will not finish because the container crashes and restarts so modify the Dockerfile as I wrote, it will work
ahhh, ok, I thougt you editet the docker file here ;-) Could you please specify the lines? Maybe post them here? I get errors when putting those commands in the lines 5 and 59. My Dockerfile is this here: https://github.com/phpservermon/docker-phpservermonitor/blob/master/Dockerfile
I found out by try and error, those are the needed lines:
apt-get install -y curl iputils-ping zip git unzip;
RUN touch ${APACHE_DOCUMENT_ROOT}/config.php; \ chmod 0777 ${APACHE_DOCUMENT_ROOT}/config.php; \ php composer.phar install
Thank you so much!
Hi, I followed your instructions - first Information & Build, where I needed to change this line:
git clone https://github.com/phpservermon/phpservermonitor.git phpservermonitor
togit clone https://github.com/phpservermon/docker-phpservermonitor.git phpservermonitor
and then I chose Option 1 and editet the docker-config.yml only regarding the ports (new: ports:Can anyone help?