cc-docker/php-fpm/entrypoint.sh

19 lines
564 B
Bash
Raw Normal View History

2021-05-19 14:27:44 +02:00
#!/usr/bin/env bash
if [ "$APP_CLUSTERCOCKPIT_INIT" = true ]; then
2021-06-09 09:53:35 +02:00
rm -rf /var/www/symfony/* /var/www/symfony/.??*
git clone https://github.com/ClusterCockpit/ClusterCockpit .
2021-05-19 15:55:10 +02:00
2021-06-09 09:53:35 +02:00
composer install --no-dev --no-progress --optimize-autoloader
yarn install
yarn encore production
#php bin/console doctrine:schema:create --no-interaction
#php bin/console doctrine:migrations:migrate --no-interaction
#php bin/console doctrine:fix:load --no-interaction
ln -s /var/lib/job-archive var/job-archive
fi
2021-05-19 14:27:44 +02:00
php bin/console about
2021-05-19 14:27:44 +02:00
exec "$@"