2021-05-19 14:27:44 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-06-11 13:44:51 +02:00
|
|
|
if [ "$APP_CLUSTERCOCKPIT_INIT" = true ]; then
|
2021-08-18 12:52:57 +02:00
|
|
|
|
|
|
|
|
2021-06-09 09:53:35 +02:00
|
|
|
rm -rf /var/www/symfony/* /var/www/symfony/.??*
|
|
|
|
git clone https://github.com/ClusterCockpit/ClusterCockpit .
|
2021-06-15 16:45:15 +02:00
|
|
|
|
|
|
|
if [ "$APP_ENV" = dev ]; then
|
2021-06-22 15:17:11 +02:00
|
|
|
git checkout develop
|
2021-06-15 16:45:15 +02:00
|
|
|
composer install --no-progress --optimize-autoloader
|
2021-06-22 15:17:11 +02:00
|
|
|
yarn install
|
2021-06-15 16:45:15 +02:00
|
|
|
yarn encore dev
|
|
|
|
else
|
|
|
|
composer install --no-dev --no-progress --optimize-autoloader
|
2021-06-22 15:17:11 +02:00
|
|
|
yarn install
|
2021-06-15 16:45:15 +02:00
|
|
|
yarn encore production
|
|
|
|
fi
|
|
|
|
|
2021-06-09 09:53:35 +02:00
|
|
|
ln -s /var/lib/job-archive var/job-archive
|
|
|
|
fi
|
2021-05-19 14:27:44 +02:00
|
|
|
|
2021-06-24 18:18:07 +02:00
|
|
|
# Reports php environment on container startup
|
2021-06-11 13:44:51 +02:00
|
|
|
php bin/console about
|
|
|
|
|
2021-05-19 14:27:44 +02:00
|
|
|
exec "$@"
|