Skip to content
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

Fix iconv bug (empty body when mail encoded in quoted-printable) #86

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deployment doesn't work on Alpine
FROM php:7.3-cli AS deployer
ENV OSTICKET_VERSION=1.14.3
ENV OSTICKET_VERSION=1.15.7
RUN set -x \
&& apt-get update \
&& apt-get install -y git-core \
Expand All @@ -21,6 +21,11 @@ ENV HOME=/data
# setup workdir
WORKDIR /data
COPY --from=deployer /data/upload upload

# Fix iconv bug (empty body when mail encoded in quoted-printable)
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing gnu-libiconv
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php

RUN set -x && \
# requirements and PHP extensions
apk add --no-cache --update \
Expand All @@ -34,6 +39,7 @@ RUN set -x && \
openldap \
libintl \
libxml2 \
libzip-dev \
icu \
openssl && \
apk add --no-cache --virtual .build-deps \
Expand All @@ -48,19 +54,14 @@ 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 mbstring xml intl opcache zip && \
docker-php-ext-configure imap --with-imap-ssl && \
docker-php-ext-install imap && \
pecl install apcu && docker-php-ext-enable apcu && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
# Download languages packs
wget -nv -O upload/include/i18n/fr.phar https://s3.amazonaws.com/downloads.osticket.com/lang/fr.phar && \
wget -nv -O upload/include/i18n/ar.phar https://s3.amazonaws.com/downloads.osticket.com/lang/ar.phar && \
wget -nv -O upload/include/i18n/pt_BR.phar https://s3.amazonaws.com/downloads.osticket.com/lang/pt_BR.phar && \
wget -nv -O upload/include/i18n/it.phar https://s3.amazonaws.com/downloads.osticket.com/lang/it.phar && \
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
wget -nv -O upload/include/plugins/auth-ldap.phar https://s3.amazonaws.com/downloads.osticket.com/plugin/auth-ldap.phar && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.15.7 of [OSTicket](http://osticket.com/).

This image has been created from the original docker-osticket image by [Petter A. Helset](mailto:[email protected]).

Expand Down