diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2026-07-12 15:51:52 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2026-07-12 15:51:52 +0300 |
| commit | 02608271bb2a9f3a65ed536984d306ee14b48e34 (patch) | |
| tree | 3f23ec48a694ec014e845c4f70d9b5f1c065403c /docker/bin | |
| download | kalassa-master.tar.gz kalassa-master.tar.bz2 kalassa-master.zip | |
Diffstat (limited to 'docker/bin')
| -rw-r--r-- | docker/bin/docker-entrypoint.sh | 26 | ||||
| -rw-r--r-- | docker/bin/optimize.sh | 17 |
2 files changed, 43 insertions, 0 deletions
diff --git a/docker/bin/docker-entrypoint.sh b/docker/bin/docker-entrypoint.sh new file mode 100644 index 0000000..ecfa33a --- /dev/null +++ b/docker/bin/docker-entrypoint.sh @@ -0,0 +1,26 @@ +#! /bin/sh + +# setup writable directories +# ------------------------------------------------------------------------------ +# grand to storage directory writable permissions +# set storage directory to apache's user ownership +chmod -R 755 /var/www/storage +chown -R www-data:www-data /var/www/storage +# chown -R www-data:www-data /var/www/public/files +# chmod -R 757 /var/www/public/files + +# prepare auutoloading +# ------------------------------------------------------------------------------ +# (cd /var/www ; composer update) +# (cd /var/www ; composer dump-autoload) + + +### set -ex +### +### /cloud_sql_proxy -instances=pythia-251711:europe-west4:pythia-db-eu -dir=/cloudsql -credential_file=/cloudsqlproxy.json & +### sleep 3 + +# start apache +# ------------------------------------------------------------------------------ +# End with running the original command +exec /usr/sbin/apache2ctl -D FOREGROUND diff --git a/docker/bin/optimize.sh b/docker/bin/optimize.sh new file mode 100644 index 0000000..02be749 --- /dev/null +++ b/docker/bin/optimize.sh @@ -0,0 +1,17 @@ +!/bin/bash -x + +# optimize performance or development + +if test ["$1" == "PRODUCTION"] ; then + + docker-php-ext-install opcache + # copy OPcache parametres + # etc... + + # install and enable JIT + + # else + # maybe install some development tools + # like XDebug + +fi
\ No newline at end of file |
