From 939d8c653563a48b70c10781f755b373dd7e88bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keno=20Oelrichs=20Garc=C3=ADa?= Date: Thu, 22 Dec 2022 17:50:26 +0100 Subject: [PATCH 1/4] Update to 1.16.3 and Added Plugins --- Dockerfile | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index a243610..df7c85c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,28 @@ -# Deployment doesn't work on Alpine -FROM php:7.3-cli AS deployer -ENV OSTICKET_VERSION=1.14.3 +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 \ && git clone -b v${OSTICKET_VERSION} --depth 1 https://github.com/osTicket/osTicket.git \ && cd osTicket \ && php manage.php deploy -sv /data/upload \ - # www-data is uid:gid 82:82 in php:7.0-fpm-alpine + && mkdir /data/upload/images/attachments \ && 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.3-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 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 \ wget \ msmtp \ @@ -48,7 +48,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 && \ @@ -62,8 +62,37 @@ RUN set -x && \ wget -nv -O upload/include/i18n/es_ES.phar https://s3.amazonaws.com/downloads.osticket.com/lang/es_ES.phar && \ wget -nv -O upload/include/i18n/de.phar https://s3.amazonaws.com/downloads.osticket.com/lang/de.phar && \ mv upload/include/i18n upload/include/i18n.dist && \ - # Download LDAP plugin + # Download official plugins wget -nv -O upload/include/plugins/auth-ldap.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/auth-ldap.phar && \ + wget -nv -O upload/include/plugins/auth-passthru.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/auth-passthru.phar && \ + wget -nv -O upload/include/plugins/storage-fs.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/storage-fs.phar && \ + wget -nv -O upload/include/plugins/storage-s3.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/storage-s3.phar && \ + wget -nv -O upload/include/plugins/audit.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/audit.phar && \ + # Download community plugins (https://forum.osticket.com/d/92286-resources-for-osticket) + ## Archiver + git clone https://github.com/clonemeagain/osticket-plugin-archiver upload/include/plugins/archiver && \ + ## Attachment Preview + git clone https://github.com/clonemeagain/attachment_preview upload/include/plugins/attachment-preview && \ + ## Auto Closer + git clone https://github.com/clonemeagain/plugin-autocloser upload/include/plugins/auto-closer && \ + ## Fetch Note + git clone https://github.com/bkonetzny/osticket-fetch-note upload/include/plugins/fetch-note && \ + ## Field Radio Buttons + git clone https://github.com/Micke1101/OSTicket-plugin-field-radiobuttons upload/include/plugins/field-radiobuttons && \ + ## Mentioner + git clone https://github.com/clonemeagain/osticket-plugin-mentioner upload/include/plugins/mentioner && \ + ## Multi LDAP Auth + git clone https://github.com/philbertphotos/osticket-multildap-auth upload/include/plugins/multi-ldap && \ + mv upload/include/plugins/multi-ldap/multi-ldap/* upload/include/plugins/multi-ldap/ && \ + rm -rf upload/include/plugins/multi-ldap/multi-ldap && \ + ## Prevent Autoscroll + git clone https://github.com/clonemeagain/osticket-plugin-preventautoscroll upload/include/plugins/prevent-autoscroll && \ + ## Rewriter + git clone https://github.com/clonemeagain/plugin-fwd-rewriter upload/include/plugins/rewriter && \ + ## Slack + git clone https://github.com/clonemeagain/osticket-slack upload/include/plugins/slack && \ + ## Teams (Microsoft) + git clone https://github.com/ipavlovi/osTicket-Microsoft-Teams-plugin upload/include/plugins/teams && \ # Create msmtp log touch /var/log/msmtp.log && \ chown www-data:www-data /var/log/msmtp.log && \ @@ -71,6 +100,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 56e0cef6df046a8ac04dd7622f6f203ceaf11cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keno=20Oelrichs=20Garc=C3=ADa?= Date: Thu, 22 Dec 2022 18:24:16 +0100 Subject: [PATCH 2/4] Update Dockerfile --- Dockerfile | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/Dockerfile b/Dockerfile index df7c85c..61a04a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,37 +62,6 @@ RUN set -x && \ wget -nv -O upload/include/i18n/es_ES.phar https://s3.amazonaws.com/downloads.osticket.com/lang/es_ES.phar && \ wget -nv -O upload/include/i18n/de.phar https://s3.amazonaws.com/downloads.osticket.com/lang/de.phar && \ mv upload/include/i18n upload/include/i18n.dist && \ - # Download official plugins - wget -nv -O upload/include/plugins/auth-ldap.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/auth-ldap.phar && \ - wget -nv -O upload/include/plugins/auth-passthru.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/auth-passthru.phar && \ - wget -nv -O upload/include/plugins/storage-fs.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/storage-fs.phar && \ - wget -nv -O upload/include/plugins/storage-s3.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/storage-s3.phar && \ - wget -nv -O upload/include/plugins/audit.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/audit.phar && \ - # Download community plugins (https://forum.osticket.com/d/92286-resources-for-osticket) - ## Archiver - git clone https://github.com/clonemeagain/osticket-plugin-archiver upload/include/plugins/archiver && \ - ## Attachment Preview - git clone https://github.com/clonemeagain/attachment_preview upload/include/plugins/attachment-preview && \ - ## Auto Closer - git clone https://github.com/clonemeagain/plugin-autocloser upload/include/plugins/auto-closer && \ - ## Fetch Note - git clone https://github.com/bkonetzny/osticket-fetch-note upload/include/plugins/fetch-note && \ - ## Field Radio Buttons - git clone https://github.com/Micke1101/OSTicket-plugin-field-radiobuttons upload/include/plugins/field-radiobuttons && \ - ## Mentioner - git clone https://github.com/clonemeagain/osticket-plugin-mentioner upload/include/plugins/mentioner && \ - ## Multi LDAP Auth - git clone https://github.com/philbertphotos/osticket-multildap-auth upload/include/plugins/multi-ldap && \ - mv upload/include/plugins/multi-ldap/multi-ldap/* upload/include/plugins/multi-ldap/ && \ - rm -rf upload/include/plugins/multi-ldap/multi-ldap && \ - ## Prevent Autoscroll - git clone https://github.com/clonemeagain/osticket-plugin-preventautoscroll upload/include/plugins/prevent-autoscroll && \ - ## Rewriter - git clone https://github.com/clonemeagain/plugin-fwd-rewriter upload/include/plugins/rewriter && \ - ## Slack - git clone https://github.com/clonemeagain/osticket-slack upload/include/plugins/slack && \ - ## Teams (Microsoft) - git clone https://github.com/ipavlovi/osTicket-Microsoft-Teams-plugin upload/include/plugins/teams && \ # Create msmtp log touch /var/log/msmtp.log && \ chown www-data:www-data /var/log/msmtp.log && \ From 44507c9a842668c748d98bfc6e2cd9a4c6a70ab3 Mon Sep 17 00:00:00 2001 From: Keno Date: Thu, 22 Feb 2024 15:45:59 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 595faee..7f39e94 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ docker-osticket # Introduction -Docker image for running version 1.14.3 of [OSTicket](http://osticket.com/). +Docker image for running version 1.17.5 of [OSTicket](http://osticket.com/). This image has been created from the original docker-osticket image by [Petter A. Helset](mailto:petter@helset.eu). From 6ca7853eadff82cdac362f4cadb41b14f4e97962 Mon Sep 17 00:00:00 2001 From: Keno Date: Thu, 22 Feb 2024 15:46:42 +0100 Subject: [PATCH 4/4] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61a04a5..ac3df71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.0-cli AS deployer -ENV OSTICKET_VERSION=1.16.3 +ENV OSTICKET_VERSION=1.17.5 RUN set -x \ && apt-get update \ && apt-get install -y git-core \ @@ -14,7 +14,7 @@ RUN set -x \ && chmod -R go= /data/upload/setup_hidden FROM php:8.0-fpm-alpine -MAINTAINER Martin Campbell . Updated to support php 8 and osticket 16.3 by Bob Weston +MAINTAINER Martin Campbell . Updated to support php 8 and osticket 1.17.5 by Bob Weston and MrDrache333 # environment for osticket ENV HOME=/data # setup workdir @@ -45,6 +45,7 @@ RUN set -x && \ libxml2-dev \ icu-dev \ autoconf \ + linux-headers \ g++ \ make \ pcre-dev && \