How To Install Survloop with Docker
This process currently relies on Laradock
But I would love some help creating a proper Dockerfile, etc. This is as far as I got: https://github.com/flexyourrights/docker-openpolice/
The following instructions are copied from github.com/rockhopsoft/survloop.
First, install Docker on Mac, Windows, or an online server. Then grab a copy of Laravel (last tested with v5.8.3)...
$ git clone https://github.com/laravel/laravel.git survloop $ cd survloop
Next, install and boot up Laradock (last tested with v7.14).
$ git submodule add https://github.com/Laradock/laradock.git $ cd laradock $ cp env-example .env $ docker-compose up -d nginx mysql phpmyadmin redis workspace
After Docker finishes booting up your containers, enter the mysql container with the root password, "root". This seems to fix things for the latest version of MYSQL.
$ docker-compose exec mysql bash # mysql --user=root --password=root default mysql> ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret'; mysql> exit; $ exit
At this point, you can optionally browse to http://localhost:8080 for PhpMyAdmin.
Server: mysql Username: default Password: secret
Finally, enter Laradock's workspace container to download and run the Open Police installation script.
$ docker-compose exec workspace bash # git clone https://github.com/rockhopsoft/docker-survloop.git # chmod +x ./docker-survloop/bin/*.sh # ./docker-survloop/bin/survloop-laradock-postinstall.sh
And if all has gone well, you'll be asked to create a master admin user account when you browse to http://localhost/. If it loads, but looks janky (without CSS), reload the page once... and hopefully it looks like a fresh install.
Updated April 25, 2019