Skip to content

Commit

Permalink
Merge pull request #116 from kirtangajjar/fix/mount-postfix-configura…
Browse files Browse the repository at this point in the history
…tion

Mount postfix configurations on host
  • Loading branch information
mrrobot47 committed Jun 22, 2022
2 parents 0034f65 + 681d01a commit 524476f
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 8 deletions.
9 changes: 8 additions & 1 deletion php/5.6/Dockerfile
@@ -1,6 +1,6 @@
FROM php:5.6-fpm

LABEL maintainer="Abhijit Rakas <abhijitrakas@gmail.com>"
LABEL maintainer="Riddhesh Sanghvi <riddhesh237@gmail.com>, Devarshi Sathiya <devarshisathiya5@gmail.com>"
LABEL org.label-schema.schema-version="1.0.0-rc1"
LABEL org.label-schema.vendor="EasyEngine"
LABEL org.label-schema.name="php5.6"
Expand Down Expand Up @@ -77,6 +77,13 @@ RUN { \

RUN echo "mailhub=postfix\nUseTLS=NO\nFromLineOverride=YES" > /etc/ssmtp/ssmtp.conf

RUN mkdir -p /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
rm -f /etc/ssmtp/revaliases && \
ln -s /usr/local/etc/misc/msmtprc /etc/ssmtp/revaliases && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/ssmtp/revaliases

# Setup logs
RUN mkdir -p /var/log/php; \
chown -R www-data: /var/log/php; \
Expand Down
6 changes: 5 additions & 1 deletion php/7.0/Dockerfile
Expand Up @@ -76,7 +76,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down
6 changes: 5 additions & 1 deletion php/7.2/Dockerfile
Expand Up @@ -85,7 +85,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down
6 changes: 5 additions & 1 deletion php/7.3/Dockerfile
Expand Up @@ -89,7 +89,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down
6 changes: 5 additions & 1 deletion php/7.4/Dockerfile
Expand Up @@ -89,7 +89,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down
6 changes: 5 additions & 1 deletion php/8.0/Dockerfile
Expand Up @@ -102,7 +102,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down
6 changes: 5 additions & 1 deletion php/8.1/Dockerfile
Expand Up @@ -103,7 +103,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down
6 changes: 5 additions & 1 deletion php/stable/Dockerfile
Expand Up @@ -89,7 +89,11 @@ RUN { \
echo 'path: /var/www/htdocs'; \
} > /etc/wp-cli/config.yml

RUN echo "host postfix\ntls off\nfrom ee4@easyengine.io" > /etc/msmtprc
RUN mkdir /usr/local/etc/misc && \
touch /usr/local/etc/misc/msmtprc && \
ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
chown www-data:www-data /usr/local/etc/misc/msmtprc && \
chown www-data:www-data /etc/msmtprc

RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
Expand Down

0 comments on commit 524476f

Please sign in to comment.