Skip to content

Php83 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 48 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.7-fpm-alpine3.18
FROM php:8.3.0-fpm-alpine3.18

LABEL maintainer="Ric Harvey <[email protected]>"

@@ -76,7 +76,6 @@ RUN apk add --no-cache --virtual .sys-deps \
pecl install -o -f mongodb && \
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \
echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/mongodb.ini && \
echo "zend_extension=xdebug" > /usr/local/etc/php/conf.d/xdebug.ini && \
docker-php-source delete && \
mkdir -p /var/www/app && \
# Install composer and certbot
@@ -135,6 +134,49 @@ RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini && \
/usr/local/etc/php/php.ini


# TS Customizations
RUN apk add --no-cache mysql-client \
su-exec \
rsync
RUN export PATH="~/.composer/vendor/bin:$PATH" && \
echo "sendmail_path=`which true`" >> ${php_vars} \
&& echo "memory_limit = 256M" >> ${php_vars} \
# Get WP CLI
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& mv wp-cli.phar /usr/local/bin/wp \
# Get Drush launcher
&& wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.5.1/drush.phar \
&& chmod +x drush.phar \
&& mv drush.phar /usr/local/bin/drush \
# Get Terminus
&& mkdir -p /var/www/.composer \
&& cd /var/www/.composer \
&& curl -O https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar \
&& php installer.phar install \
# Get Drupal console
&& curl https://drupalconsole.com/installer -L -o drupal.phar \
&& chmod +x drupal.phar \
&& mv drupal.phar /usr/local/bin/drupal
# Get java for Behat/selenium/chromedriver tests
RUN apk add --no-cache openjdk8-jre \
patch

# Add an extension for commerce.
RUN docker-php-ext-install bcmath

# Get Google Chrome (well, chromium)
RUN apk add -U --no-cache --allow-untrusted chromium

# Add packages and settings for screener.io automated visual regression testing
RUN apk add --update jq
RUN apk add -U --no-cache nghttp2-dev npm
ENV NPM_CONFIG_UNSAFE_PERM true
ENV NODE_PATH /usr/lib/node_modules
RUN npm install dotenv@latest --global
RUN npm install screener-runner@latest --global
# End TS Customizations

# Add Scripts
ADD scripts/start.sh /start.sh
ADD scripts/pull /usr/bin/pull
@@ -152,3 +194,7 @@ EXPOSE 443 80

WORKDIR "/var/www/html"
CMD ["/start.sh"]

# Bring in our nginx customizations
COPY conf/nginx-site.conf /etc/nginx/sites-available/default.conf
COPY conf/nginx.conf /etc/nginx/nginx.conf
5 changes: 5 additions & 0 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
@@ -33,6 +33,11 @@ http {
server_tokens off;
#gzip on;

# TS Customizations start.
fastcgi_buffers 128 2048k;
fastcgi_buffer_size 2048k;
# TS Customizations end.

# Disabled due to license
# geoip2 /etc/nginx/GeoLite2-Country.mmdb {
# auto_reload 1h;