Has anyone tried running this project as a Docker image in Raspian on a Raspberry Pi? I've been toying around with it for a few days, and have hit a brick wall... I can finally get the Docker image to build and run, but get the following error when trying to run any commands:
root@f905f4af6e38:/var/www/bowhead# php artisan bowhead:example_strategy
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/trader.so' - /usr/lib/php/20151012/trader.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: require(/var/www/bowhead/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/bowhead/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/var/www/bowhead/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/bowhead/bootstrap/autoload.php on line 17
root@f905f4af6e38:/var/www/bowhead#
I have to assume this is related to using php7.0-fpm in the Dockerconfig file instead of php7.1-fpm (which does not appear to be available on Raspbian right now). Here is a quick list of the changes I had to make in order to get this far:
Must use portainer/portainer:arm to get the RaspberryPi build of Portainer
If you get an error that says: cgroups: memory cgroup not supported on this system
do this: add "cgroup_memory=1" to /boot/cmdline.txt and then reboot
Edits to bowhead/docker/Dockerfile:
change FROM line to "FROM armv7/armhf-ubuntu"
in first RUN block, change "php7.1-fpm" to "php7.0-fpm"
Edits to bowhead/docker/resources/config_bowhead.sh:
change "service php7.1-fpm start" to "service php7.0-fpm start"
Rename "bowhead/docker/resources/etc/php/7.1" to "bowhead/docker/resources/etc/php/7.0"
Has anyone tried running this project as a Docker image in Raspian on a Raspberry Pi? I've been toying around with it for a few days, and have hit a brick wall... I can finally get the Docker image to build and run, but get the following error when trying to run any commands:
I have to assume this is related to using php7.0-fpm in the Dockerconfig file instead of php7.1-fpm (which does not appear to be available on Raspbian right now). Here is a quick list of the changes I had to make in order to get this far:
Must use portainer/portainer:arm to get the RaspberryPi build of Portainer
If you get an error that says: cgroups: memory cgroup not supported on this system do this: add "cgroup_memory=1" to /boot/cmdline.txt and then reboot
Edits to bowhead/docker/Dockerfile: change FROM line to "FROM armv7/armhf-ubuntu" in first RUN block, change "php7.1-fpm" to "php7.0-fpm" Edits to bowhead/docker/resources/config_bowhead.sh: change "service php7.1-fpm start" to "service php7.0-fpm start"
Rename "bowhead/docker/resources/etc/php/7.1" to "bowhead/docker/resources/etc/php/7.0"