-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from generationtux/lumen-7.x-support
- Loading branch information
Showing
31 changed files
with
240 additions
and
87 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/tests/coverage | ||
composer.lock | ||
.idea | ||
.phpunit.result.cache |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM php:7.3-fpm-alpine | ||
|
||
# The following labels need to be set as part of the docker build process. | ||
# org.opencontainers.image.created | ||
# org.opencontainers.image.revision | ||
LABEL org.opencontainers.image.url="https://laravel.com" \ | ||
org.opencontainers.image.documentation="https://github.com/generationtux/php-healthz/blob/master/README.md" \ | ||
org.opencontainers.image.source="https://github.com/generationtux/php-healthz/Dockerfile" \ | ||
org.opencontainers.image.vendor="Generation Tux <[email protected]>" \ | ||
org.opencontainers.image.title="Laravel 6.x" \ | ||
org.opencontainers.image.description="PHP built for use with the Laravel/Lumen framework" \ | ||
com.generationtux.php.backend="fpm" | ||
|
||
USER root | ||
|
||
COPY ./docker/installComposer.sh /tmp/installComposer.sh | ||
|
||
RUN apk --no-cache --update add bash ca-certificates libpq postgresql-dev curl git curl git mysql-client unzip wget zip postgresql-client \ | ||
&& apk add --no-cache --virtual build-dependencies autoconf build-base g++ make \ | ||
&& pecl install redis xdebug \ | ||
&& docker-php-ext-install bcmath opcache pdo_mysql pdo_pgsql pcntl \ | ||
&& docker-php-ext-enable bcmath opcache redis xdebug \ | ||
&& chmod +x /tmp/installComposer.sh \ | ||
&& /tmp/installComposer.sh \ | ||
&& chown www-data:www-data /usr/local/bin/composer \ | ||
&& apk del --purge autoconf build-dependencies g++ make \ | ||
&& chown -R www-data:www-data /var/www | ||
|
||
WORKDIR /var/www | ||
|
||
USER www-data:www-data |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig) | ||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
ACTUAL_SIGNATURE=$(php -r "echo hash_file('sha384', 'composer-setup.php');") | ||
|
||
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]; then | ||
>&2 echo 'ERROR: Invalid installer signature' | ||
rm composer-setup.php | ||
exit 1 | ||
fi | ||
|
||
php composer-setup.php --install-dir=/usr/local/bin --filename=composer --quiet | ||
RESULT=$? | ||
rm composer-setup.php | ||
if [[ "$RESULT" -eq "0" ]]; then | ||
composer global require hirak/prestissimo | ||
fi; | ||
exit $RESULT | ||
Terms |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.