Skip to content

Commit

Permalink
Add PHP 8.3 image (#21)
Browse files Browse the repository at this point in the history
* Add PHP 8.3 image. Use master branch for imagick extension

* comment out image
  • Loading branch information
tomb1n0 authored Jan 8, 2024
1 parent 5af3d0d commit effd6fd
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 24 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- php-80
- php-81
- php-82
- php-83
- node-6
- node-8
- node-10
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ IMAGES=(
# 'php-72'
# 'php-73'
# 'php-74'
# 'php-83'
# 'php-82'
# 'php-81'
# 'php-80'
# 'node-6'
Expand Down
15 changes: 14 additions & 1 deletion php-71/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
15 changes: 14 additions & 1 deletion php-72/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
15 changes: 14 additions & 1 deletion php-73/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
15 changes: 14 additions & 1 deletion php-74/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
15 changes: 14 additions & 1 deletion php-80/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
15 changes: 14 additions & 1 deletion php-81/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat-traditional git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
15 changes: 14 additions & 1 deletion php-82/DockerFile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,20 @@ COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat-traditional git iputils-ping dnsutils default-mysql-client
RUN /docker-scripts/install_extensions.sh
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh
Expand Down
59 changes: 59 additions & 0 deletions php-83/DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
############################################################
# Dockerfile to create a php container to run the project
############################################################

FROM php:8.3-fpm
COPY --from=php:8.3-cli /usr/local/bin/phpdbg /usr/local/bin/

# Set working directory
WORKDIR /var/www

# NVM Settings
ENV NVM_DIR /usr/local/nvm
ENV NVM_VERSION v0.39.3

# Copy all config
COPY /resources/config/php/ /docker-config/

# Only copy install scripts
COPY /resources/scripts/php/install_* /docker-scripts/

# Run Installation Scripts
RUN /docker-scripts/install_dependencies.sh sudo vim nano netcat-traditional git iputils-ping dnsutils default-mysql-client imagemagick
RUN install-php-extensions mysqli \
pdo_mysql \
mbstring \
exif \
pcntl \
soap \
gd \
zip \
sockets \
opcache \
intl \
redis \
imagick/imagick@master \
yaml
RUN /docker-scripts/install_users.sh
RUN /docker-scripts/install_config.sh
RUN /docker-scripts/install_nvm.sh

# Copy Entrypoint & Start Scripts etc.
# If these change we don't want to rerun the above layers, hence do this last.
COPY /resources/scripts/php/entrypoint.sh /docker-scripts/entrypoint.sh
COPY /resources/scripts/php/root-start-script.sh /docker-scripts/root-start-script.sh
COPY /resources/scripts/php/www-start-script.sh /docker-scripts/www-start-script.sh
COPY /resources/scripts/php/qa-start-script.sh /docker-scripts/qa-start-script.sh

# Copy the script to run the scheduler
COPY /resources/scripts/php/run-scheduler.sh /run-scheduler.sh

ENTRYPOINT [ "/docker-scripts/entrypoint.sh" ]

# Change to WWW user
USER www

# Expose port 9000 and start php-fpm server
EXPOSE 9000

CMD ["php-fpm"]
17 changes: 0 additions & 17 deletions resources/scripts/php/install_extensions.sh

This file was deleted.

0 comments on commit effd6fd

Please sign in to comment.