feat: remove nextcloud
This commit is contained in:
parent
f8a965756c
commit
6f9f930e04
3 changed files with 0 additions and 123 deletions
|
|
@ -1,61 +0,0 @@
|
||||||
FROM nextcloud:32.0.3-apache
|
|
||||||
|
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
\
|
|
||||||
apt-get update; \
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
ffmpeg \
|
|
||||||
ghostscript \
|
|
||||||
libmagickcore-7.q16-10-extra \
|
|
||||||
procps \
|
|
||||||
smbclient \
|
|
||||||
supervisor \
|
|
||||||
libreoffice \
|
|
||||||
; \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
\
|
|
||||||
savedAptMark="$(apt-mark showmanual)"; \
|
|
||||||
\
|
|
||||||
apt-get update; \
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
libbz2-dev \
|
|
||||||
#libc-client-dev \
|
|
||||||
libkrb5-dev \
|
|
||||||
libsmbclient-dev \
|
|
||||||
; \
|
|
||||||
\
|
|
||||||
#docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
|
||||||
docker-php-ext-install \
|
|
||||||
bz2 \
|
|
||||||
# imap \
|
|
||||||
; \
|
|
||||||
pecl install smbclient; \
|
|
||||||
docker-php-ext-enable smbclient; \
|
|
||||||
\
|
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
|
||||||
apt-mark auto '.*' > /dev/null; \
|
|
||||||
apt-mark manual $savedAptMark; \
|
|
||||||
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
|
|
||||||
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
|
|
||||||
| sort -u \
|
|
||||||
| xargs -r dpkg-query --search \
|
|
||||||
| cut -d: -f1 \
|
|
||||||
| sort -u \
|
|
||||||
| xargs -rt apt-mark manual; \
|
|
||||||
\
|
|
||||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN mkdir -p \
|
|
||||||
/var/log/supervisord \
|
|
||||||
/var/run/supervisord \
|
|
||||||
;
|
|
||||||
|
|
||||||
COPY supervisord.conf /
|
|
||||||
|
|
||||||
ENV NEXTCLOUD_UPDATE=1
|
|
||||||
|
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
---
|
|
||||||
services:
|
|
||||||
imaginary:
|
|
||||||
image: nextcloud/aio-imaginary:latest
|
|
||||||
cap_add:
|
|
||||||
- SYS_NICE
|
|
||||||
volumes:
|
|
||||||
- type: tmpfs
|
|
||||||
target: /tmp:exec
|
|
||||||
environment:
|
|
||||||
- TZ=Europe/Madrid
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- nextcloud
|
|
||||||
|
|
||||||
nextcloud:
|
|
||||||
image: git.roboces.dev/catalin/fukuops:nextcloud-32.0.3
|
|
||||||
volumes:
|
|
||||||
- /mnt/nas1/legacy-storage/cloud/cloud/data:/var/www/html/data
|
|
||||||
- /mnt/nas1/legacy-storage/cloud/cloud/config:/var/www/html/config
|
|
||||||
- /mnt/nas1/legacy-storage/cloud/cloud/custom_apps:/var/www/html/custom_apps
|
|
||||||
- /mnt/nas1/legacy-storage/cloud/cloud/apps:/var/www/html/apps
|
|
||||||
- type: tmpfs
|
|
||||||
target: /tmp:exec
|
|
||||||
- supervisorlog:/var/log/supervisor:z
|
|
||||||
- supervisorpid:/var/run/supervisord/:z
|
|
||||||
environment:
|
|
||||||
PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT:-2048M}
|
|
||||||
NEXTCLOUD_INIT_HTACCESS: ${NEXTCLOUD_INIT_HTACCESS:-1}
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- '8080:80'
|
|
||||||
networks:
|
|
||||||
- nextcloud
|
|
||||||
|
|
||||||
networks:
|
|
||||||
nextcloud: {}
|
|
||||||
volumes:
|
|
||||||
supervisorlog: {}
|
|
||||||
supervisorpid: {}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
[supervisord]
|
|
||||||
nodaemon=true
|
|
||||||
logfile=/var/log/supervisord/supervisord.log
|
|
||||||
pidfile=/var/run/supervisord/supervisord.pid
|
|
||||||
childlogdir=/var/log/supervisord/
|
|
||||||
logfile_maxbytes=50MB ; maximum size of logfile before rotation
|
|
||||||
logfile_backups=10 ; number of backed up logfiles
|
|
||||||
loglevel=error
|
|
||||||
|
|
||||||
[program:apache2]
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
command=apache2-foreground
|
|
||||||
|
|
||||||
[program:cron]
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
command=/cron.sh
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue