summaryrefslogblamecommitdiff
path: root/Bastillefile
blob: 5e7319c888ff47a41740cf7b0b4127cfa698581e (plain) (tree)
1
2
3
4
5
6
7
8
9
                 







                                                                           

         







                                                                                                                                                                                                                                                                                                                                                                                                                                                     

               
           


             

        
                         
                      
                        
                      


                     
                      
# Dirs and mounts
CMD mkdir -p /mnt/nextcloud_data 
CMD mkdir -p /usr/local/www/nextcloud/config
CMD mkdir -p /usr/local/www/nextcloud/themes
CMD mkdir -p /var/db/mysql
FSTAB /zroot/nextcloud_data /mnt/nextcloud_data nullfs rw 0 0
FSTAB /zroot/nextcloud_conf /usr/local/www/nextcloud/config nullfs rw 0 0
FSTAB /zroot/nextcloud_themes /usr/local/www/nextcloud/themes 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

# Nextcloud
CMD fetch -o /tmp https://download.nextcloud.com/server/releases/latest-20.tar.bz2
CMD fetch -o /tmp https://download.nextcloud.com/server/releases/latest-20.tar.bz2.md5
CMD cd /tmp ; shasum -a 512 -c latest-20.tar.bz2.sha512
CMD tar -xkf /tmp/latest-20.tar.bz2 -C /usr/local/www
CMD chown -R www:www /usr/local/www/nextcloud

# 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 start
SERVICE redis start
SERVICE php-fpm start
SERVICE apache24 start