sudo apt update
sudo apt install openjdk-8-jdk-headless| FROM php:7.1-apache | |
| ADD . /var/www | |
| ADD ./site.conf /etc/apache2/sites-enabled/000-default.conf | |
| RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client && \ | |
| docker-php-ext-install mcrypt pdo_mysql opcache && \ | |
| pecl install redis-3.1.2 && docker-php-ext-enable redis && \ | |
| a2enmod rewrite |
Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.
Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php and app/Http/Middleware/Authenticate.php
| package main | |
| import ( | |
| "encoding/json" | |
| "log" | |
| "strconv" | |
| ) | |
| func main() { | |
| //unmarshalIdealData() |
| FROM nginx:alpine | |
| # stock verison from php:alpine image | |
| # ensure www-data user exists | |
| RUN set -x \ | |
| && addgroup -g 82 -S www-data \ | |
| && adduser -u 82 -D -S -G www-data www-data | |
| # 82 is the standard uid/gid for "www-data" in Alpine | |
| # http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2 |
| # overwrite master with contents of feature branch (feature > master) | |
| git checkout feature # source name | |
| git merge -s ours master # target name | |
| git checkout master # target name | |
| git merge feature # source name |
| package main | |
| import "fmt" | |
| //Listener is a | |
| type Listener struct { | |
| ID int | |
| } | |
| //ListenerInterface is an |