blob: 0d4c7312fe04b37ab55450a9d12f289d36dbe327 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Dirs and mounts
CMD mkdir -p /mnt/nextcloud_data
CMD mkdir -p /usr/local/www/nextcloud
CMD mkdir -p /var/db/mysql
FSTAB /zroot/nextcloud /usr/local/www/nextcloud nullfs rw 0 0
FSTAB /zroot/nextcloud_data /mnt/nextcloud_data nullfs rw 0 0
FSTAB /zroot/nextcloud_db /var/db/mysql nullfs rw 0 0
# Depends
PKG apache24 mariadb105-server redis php74 php74-bz2 php74-ctype php74-curl php74-dom php74-exif php74-fileinfo php74-filter php74-gd php74-iconv php74-intl php74-json php74-ldap php74-mbstring php74-opcache php74-openssl php74-pdo php74-pdo_mysql php74-pecl-APCu php74-pecl-imagick php74-pecl-redis php74-posix php74-session php74-simplexml php74-xml php74-xmlreader php74-xmlwriter php74-xsl php74-zip php74-zlib php74-bcmath php74-gmp
# Pull Nextcloud
#CMD fetch -o /tmp https://download.nextcloud.com/server/releases/nextcloud-20.0.7.tar.bz2
#CMD fetch -o /tmp https://download.nextcloud.com/server/releases/nextcloud-20.0.7.tar.bz2.sha512
#CMD cd /tmp ; shasum -a 512 -c *.tar.bz2.sha512
#CMD tar -xkf /tmp/*.tar.bz2 -C /usr/local/www
#CMD chown -R www:www /usr/local/www/nextcloud
# Permissions
CMD pw usermod www -G redis
# Configuration
OVERLAY usr
OVERLAY var
# TODO: aide?
# Launch
SYSRC apache24_enable=YES
SYSRC mysql_enable=YES
SYSRC php_fpm_enable=YES
SYSRC redis_enable=YES
SERVICE mysql-server start
SERVICE redis start
SERVICE php-fpm start
SERVICE apache24 start
|