-
Notifications
You must be signed in to change notification settings - Fork 89
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 #172 from Steffen-MLR/master
PHP8 Support
- Loading branch information
Showing
19 changed files
with
146 additions
and
67 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
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,32 @@ | ||
FROM php:8.2-apache | ||
RUN docker-php-ext-install mysqli | ||
RUN docker-php-ext-enable mysqli | ||
RUN apt-get update | ||
RUN apt-get install libzip-dev -y | ||
RUN docker-php-ext-install zip | ||
RUN docker-php-ext-enable zip | ||
RUN a2enmod rewrite | ||
RUN touch /usr/local/etc/php/conf.d/ssp.ini | ||
RUN echo "output_buffering = 16384" >> /usr/local/etc/php/conf.d/ssp.ini | ||
RUN echo "display_errors = off" >> /usr/local/etc/php/conf.d/ssp.ini | ||
RUN echo "error_reporting = E_ERROR" >> /usr/local/etc/php/conf.d/ssp.ini | ||
RUN apt install git -y | ||
WORKDIR /var/www/html | ||
RUN docker-php-ext-install gettext | ||
RUN docker-php-ext-install pdo_mysql | ||
RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j$(nproc) gd | ||
RUN apt-get install -y locales | ||
RUN locale-gen en_GB.UTF-8 | ||
RUN sed -i '/en_GB.UTF-8/s/^# //g' /etc/locale.gen && \ | ||
locale-gen | ||
RUN apt-get install -y curl | ||
# And clean up the image | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -Lsf 'https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz' | tar -C '/usr/local' -xvzf - | ||
ENV PATH /usr/local/go/bin:$PATH | ||
RUN go get github.com/mailhog/mhsendmail | ||
RUN cp /root/go/bin/mhsendmail /usr/bin/mhsendmail | ||
RUN echo 'sendmail_path = /usr/bin/mhsendmail --smtp-addr mailhog:1025' > /usr/local/etc/php/php.ini | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: '3' | ||
|
||
networks: | ||
status-db: | ||
|
||
services: | ||
server-status: | ||
build: . | ||
volumes: | ||
- ./:/var/www/html | ||
ports: | ||
- 4000:80 | ||
networks: | ||
- status-db | ||
dbserver: | ||
image: mysql | ||
command: --default-authentication-plugin=mysql_native_password | ||
environment: | ||
MYSQL_ROOT_PASSWORD: e347h43cve89 | ||
MYSQL_DATABASE: server_status | ||
volumes: | ||
- ./database:/var/lib/mysql | ||
networks: | ||
- status-db | ||
mailhog: | ||
image: mailhog/mailhog | ||
ports: | ||
- "1025:1025" | ||
- "8025:8025" | ||
networks: | ||
- status-db |
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.