Skip to content

Commit

Permalink
chore: ci add build for nginx dockers php84 (#7119)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Dec 27, 2023
1 parent e22001d commit 487ad18
Show file tree
Hide file tree
Showing 7 changed files with 3,976 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/manual-build-php-fpm-dockers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,49 @@ jobs:
platforms: linux/amd64
push: true
no-cache: true

build_8_4:
# Only run from master branch on the main repository
if: github.repository_owner == 'openemr' && github.repository == 'openemr/openemr' && github.ref == 'refs/heads/master'
runs-on: ubuntu-22.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push dev-php-fpm:8.4 docker
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:docker/library/dockers/dev-php-fpm-8-4"
tags: openemr/dev-php-fpm:8.4
platforms: linux/amd64
push: true
no-cache: true

build_8_4_redis:
# Only run from master branch on the main repository
if: github.repository_owner == 'openemr' && github.repository == 'openemr/openemr' && github.ref == 'refs/heads/master'
runs-on: ubuntu-22.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push dev-php-fpm:8.4-redis docker
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:docker/library/dockers/dev-php-fpm-8-4-redis"
tags: openemr/dev-php-fpm:8.4-redis
platforms: linux/amd64
push: true
no-cache: true
2 changes: 1 addition & 1 deletion docker/library/dockers/dev-php-fpm-8-3-redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# php-fpm Dockerfile build for openemr development docker environment
# This docker is hosted here: https://hub.docker.com/r/openemr/dev-php-fpm/ <tag is 7.2>
#
FROM devilbox/php-fpm-8.3
FROM php:8.3-fpm

# Update
RUN apt-get update
Expand Down
2 changes: 1 addition & 1 deletion docker/library/dockers/dev-php-fpm-8-3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# php-fpm Dockerfile build for openemr development docker environment
# This docker is hosted here: https://hub.docker.com/r/openemr/dev-php-fpm/ <tag is 7.2>
#
FROM devilbox/php-fpm-8.3
FROM php:8.3-fpm

# Update
RUN apt-get update
Expand Down
46 changes: 46 additions & 0 deletions docker/library/dockers/dev-php-fpm-8-4-redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Copyright (C) 2018-2019 Brady Miller <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# php-fpm Dockerfile build for openemr development docker environment
# This docker is hosted here: https://hub.docker.com/r/openemr/dev-php-fpm/ <tag is 7.2>
#
FROM devilbox/php-fpm-8.4

# Update
RUN apt-get update

# Add mariadb-client package that is needed in the OpenEMR Backup gui, which does direct command mysql commands
# Add imagemagick that is needed for some image processing in OpenEMR
# Note this basically add 160MB of space to the docker, so would be nice for OpenEMR to not require this stuff
# and instead rely on php scripts, if possible.
RUN apt-get install -y mariadb-client \
imagemagick

# Add the php extensions (note using a very cool script by mlocati to do this)
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions pdo_mysql \
ldap \
xsl \
gd \
zip \
soap \
gettext \
mysqli \
sockets \
tokenizer \
xmlreader \
calendar \
intl \
redis

# Copy over the php.ini conf
COPY php.ini /usr/local/etc/php/php.ini

# Needed to ensure permissions work across shared volumes with openemr, nginx, and php-fpm dockers
RUN usermod -u 1000 www-data
Loading

0 comments on commit 487ad18

Please sign in to comment.