Greetings! I am trying to run PMS using Docker on Windows, but am running into some issues that appear to be related to the PHP APCu Extension. I started to document the steps and commands in this readme, but am at a point where I need help to get PMS to work using Docker on Windows.
In addition to the documentation, I found an excellent write-up in #43 (comment) to get me started. (On a separate note, I would be willing to help with documentation updates, but would like to know if opening another issue in this repo is how you want to track documentation updates.)
Here are some of my questions:
- What container needs to have APCu installed? Is it the
php-fpm
container?
- Does
pecl install apcu
need to be run before composer pms-installer-docker
?
- If
apcu.ini
needs to exist and have specific content in it, can the project be updated to include the file and needed content?
- Based on the output I receive, it looks like
"extension=apcu.so"
needs to be added to php.ini
, can this be added to the project?
- What else do I need to change to get PMS to work using Docker on Windows?
At a high level, here are the commands I ran:
docker-compose build
docker-compose up -d
docker-compose exec php-fpm bash
composer install
composer pms-installer-docker
pecl install apcu
I am using Docker on Windows 10 (using the WSL 2 based engine). Here are the commands I ran (summary of output):
note: the directory is C:\docker\personal-management-system-1.4.30-attempt03
but i've truncated the output to show PS C:\docker\pms-1.4.30>
PS C:\docker\pms-1.4.30> write-host 'following steps in https://github.com/Volmarg/personal-management-system/pull/43#issue-493755082'
PS C:\docker\pms-1.4.30> write-host 'also following documentation from https://volmarg.github.io/docs/general/installation/'
PS C:\docker\pms-1.4.30> write-host 'i have not made any changes to the docker-compose file or any other files'
PS C:\docker\pms-1.4.30> docker-compose build
PS C:\docker\pms-1.4.30> docker-compose up -d
PS C:\docker\pms-1.4.30> docker-compose exec php-fpm bash
root@672bcf287a87:/application# sudo composer install
# received `bash: sudo: command not found`
root@672bcf287a87:/application# composer install
root@672bcf287a87:/application# composer pms-installer-docker
## multiple times I am seeing ` APCu is not enabled.` from the output
root@672bcf287a87:/application# pecl install apcu
root@672bcf287a87:/application# apt install php-apcu
root@672bcf287a87:/application# find / -name php.ini
root@672bcf287a87:/application# cat /usr/local/etc/php/conf.d/php.ini
root@672bcf287a87:/application# echo 'going to stop and restart the containers to see if anything is working'
PS C:\docker\pms-1.4.30> write-host 'starting the pms containers again, will check to see if pms works now'
PS C:\docker\pms-1.4.30> docker-compose exec php-fpm bash
root@672bcf287a87:/application# composer pms-installer-docker
## still receiving ` APCu is not enabled.` from the output, assuming because APCu is not enabled in `php.ini`
I uploaded the output details to this gist since it was too long to fit in a comment.
Any help would be greatly appreciated! Also, please let me know if I can assist with documentation updates.