remove memcached from sogo container
This commit is contained in:
@@ -37,6 +37,7 @@ RUN \
|
|||||||
psmisc \
|
psmisc \
|
||||||
wget \
|
wget \
|
||||||
patch \
|
patch \
|
||||||
|
apache2 \
|
||||||
&& \
|
&& \
|
||||||
case "${TARGETPLATFORM}" in \
|
case "${TARGETPLATFORM}" in \
|
||||||
'linux/amd64') export ARCH='linux-x64' ;; \
|
'linux/amd64') export ARCH='linux-x64' ;; \
|
||||||
@@ -47,20 +48,18 @@ RUN \
|
|||||||
mkdir ~/.gnupg && \
|
mkdir ~/.gnupg && \
|
||||||
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf && \
|
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf && \
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0x810273C4 && \
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0x810273C4 && \
|
||||||
echo "deb https://packages.inverse.ca/SOGo/nightly/5/ubuntu/ focal focal" > /etc/apt/sources.list.d/SOGo.list && \
|
echo "deb ${SOGO_UBUNTU_REPOSITORY} focal focal" > /etc/apt/sources.list.d/SOGo.list && \
|
||||||
mkdir /usr/share/doc/sogo && \
|
mkdir /usr/share/doc/sogo && \
|
||||||
touch /usr/share/doc/sogo/empty.sh && \
|
touch /usr/share/doc/sogo/empty.sh && \
|
||||||
apt-get update -qq && \
|
apt-get update -qq && \
|
||||||
apt-get install -yq --no-install-recommends apache2 sogo sogo-activesync sope4.9-gdl1-postgresql sope4.9-gdl1-mysql supervisor memcached memcached && \
|
apt-get install -yq --no-install-recommends sogo sogo-activesync sope4.9-gdl1-postgresql sope4.9-gdl1-mysql && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
||||||
a2enmod headers proxy proxy_http rewrite ssl && \
|
a2enmod headers proxy proxy_http rewrite ssl && \
|
||||||
cp /etc/apache2/conf.d/SOGo.conf /etc/apache2/conf-available/ && \
|
cp /etc/apache2/conf.d/SOGo.conf /etc/apache2/conf-available/ && \
|
||||||
sed -i -e 's/#RedirectMatch \^\/\$ https:\/\/mail.yourdomain.com\/SOGo/RedirectMatch \^\/\$ \/SOGo/' /etc/apache2/conf-available/SOGo.conf && \
|
sed -i -e 's/#RedirectMatch \^\/\$ https:\/\/mail.yourdomain.com\/SOGo/RedirectMatch \^\/\$ \/SOGo/' /etc/apache2/conf-available/SOGo.conf && \
|
||||||
a2enconf SOGo && \
|
a2enconf SOGo && \
|
||||||
usermod --home /srv/lib/sogo sogo && \
|
usermod --home /srv/lib/sogo sogo
|
||||||
mkdir -p /var/run/memcached/ && \
|
|
||||||
chown memcache:memcache /var/run/memcached
|
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
|||||||
@@ -18,17 +18,6 @@ stderr_logfile_maxbytes=0
|
|||||||
environment=APACHE_ARGUMENTS="-DNO_DETACH"
|
environment=APACHE_ARGUMENTS="-DNO_DETACH"
|
||||||
command=/usr/sbin/apache2ctl start
|
command=/usr/sbin/apache2ctl start
|
||||||
|
|
||||||
[program:memcached]
|
|
||||||
startsecs=0
|
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
user=memcache
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
command=/usr/bin/memcached -m 128 -a 0666 -s /var/run/memcached/memcached.sock
|
|
||||||
|
|
||||||
[program:sogo]
|
[program:sogo]
|
||||||
startsecs=0
|
startsecs=0
|
||||||
autostart=true
|
autostart=true
|
||||||
|
|||||||
Reference in New Issue
Block a user