This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7 | |
| if [ "$(whoami)" != "root" ]; then | |
| echo "Run script as ROOT please. (sudo !!)" | |
| exit | |
| fi | |
| echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
| echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.2-fpm-alpine | |
| RUN docker-php-source extract && \ | |
| apk add --update --no-cache autoconf g++ make && \ | |
| pecl install redis && \ | |
| docker-php-ext-enable redis && \ | |
| docker-php-ext-install mysqli && \ | |
| docker-php-ext-install pdo && \ | |
| docker-php-ext-install pdo_mysql && \ | |
| docker-php-ext-install mbstring && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Create a Symfony response for the given exception. | |
| * | |
| * @param \Exception $e | |
| * @return mixed | |
| */ | |
| protected function convertExceptionToResponse(Exception $e) | |
| { | |
| if (config('app.debug')) { | |
| $whoops = new \Whoops\Run; |