From 860349e3cba1f54b721479d0900ef37f18ecbe25 Mon Sep 17 00:00:00 2001 From: bobweston Date: Tue, 2 Aug 2022 11:45:27 -0400 Subject: [PATCH 1/2] Update Dockerfile bumps php version and dependencies to 7.4 and upgrades the version to 1.15.4 --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a243610..17e5db0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ -# Deployment doesn't work on Alpine -FROM php:7.3-cli AS deployer -ENV OSTICKET_VERSION=1.14.3 +FROM php:7.4-cli AS deployer +ENV OSTICKET_VERSION=1.15.4 RUN set -x \ && apt-get update \ && apt-get install -y git-core \ && git clone -b v${OSTICKET_VERSION} --depth 1 https://github.com/osTicket/osTicket.git \ && cd osTicket \ && php manage.php deploy -sv /data/upload \ + && mkdir /data/upload/images/attachments \ # www-data is uid:gid 82:82 in php:7.0-fpm-alpine && chown -R 82:82 /data/upload \ # Hide setup @@ -14,13 +14,15 @@ RUN set -x \ && chown -R root:root /data/upload/setup_hidden \ && chmod -R go= /data/upload/setup_hidden -FROM php:7.3-fpm-alpine +FROM php:7.4-fpm-alpine MAINTAINER Martin Campbell # environment for osticket ENV HOME=/data # setup workdir WORKDIR /data COPY --from=deployer /data/upload upload +RUN apk add --no-cache libzip-dev zip && docker-php-ext-configure zip && docker-php-ext-install zip && docker-php-ext-install pdo pdo_mysql + RUN set -x && \ # requirements and PHP extensions apk add --no-cache --update \ @@ -48,7 +50,7 @@ RUN set -x && \ g++ \ make \ pcre-dev && \ - docker-php-ext-install gd curl ldap mysqli sockets gettext mbstring xml intl opcache && \ + docker-php-ext-install gd curl ldap mysqli sockets gettext xml intl opcache && \ docker-php-ext-configure imap --with-imap-ssl && \ docker-php-ext-install imap && \ pecl install apcu && docker-php-ext-enable apcu && \ @@ -71,6 +73,6 @@ RUN set -x && \ mkdir -p /var/tmp/nginx && \ chown nginx:www-data /var/tmp/nginx && chmod g+rx /var/tmp/nginx COPY files/ / -VOLUME ["/data/upload/include/plugins","/data/upload/include/i18n","/var/log/nginx"] +VOLUME ["/data/upload/include/plugins","/data/upload/include/i18n","/var/log/nginx","/data/upload/images/attachments"] EXPOSE 80 CMD ["/data/bin/start.sh"] From 0cf0fd6bb91439ffa3aa0f52e3745f7dfa6e36b2 Mon Sep 17 00:00:00 2001 From: bobweston Date: Mon, 8 Aug 2022 17:30:23 -0400 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17e5db0..9693e6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM php:7.4-cli AS deployer -ENV OSTICKET_VERSION=1.15.4 +FROM php:8.0-cli AS deployer +ENV OSTICKET_VERSION=1.16.3 RUN set -x \ && apt-get update \ && apt-get install -y git-core \ @@ -7,15 +7,14 @@ RUN set -x \ && cd osTicket \ && php manage.php deploy -sv /data/upload \ && mkdir /data/upload/images/attachments \ - # www-data is uid:gid 82:82 in php:7.0-fpm-alpine && chown -R 82:82 /data/upload \ # Hide setup && mv /data/upload/setup /data/upload/setup_hidden \ && chown -R root:root /data/upload/setup_hidden \ && chmod -R go= /data/upload/setup_hidden -FROM php:7.4-fpm-alpine -MAINTAINER Martin Campbell +FROM php:8.0-fpm-alpine +MAINTAINER Martin Campbell . Updated to support php 8 and osticket 16.3 by Bob Weston # environment for osticket ENV HOME=/data # setup workdir @@ -24,7 +23,6 @@ COPY --from=deployer /data/upload upload RUN apk add --no-cache libzip-dev zip && docker-php-ext-configure zip && docker-php-ext-install zip && docker-php-ext-install pdo pdo_mysql RUN set -x && \ - # requirements and PHP extensions apk add --no-cache --update \ wget \ msmtp \