mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 11:27:25 +01:00
f64b251be2
- adds INFLUXDB_TOKEN and INFLUXDB_V2_URL - change container name in INFLUXDB_URL to 'cc-influxdb'
25 lines
625 B
Bash
Executable File
25 lines
625 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ "$APP_CLUSTERCOCKPIT_INIT" = true ]; then
|
|
rm -rf /var/www/symfony/* /var/www/symfony/.??*
|
|
git clone https://github.com/ClusterCockpit/ClusterCockpit .
|
|
|
|
if [ "$APP_ENV" = dev ]; then
|
|
git checkout develop
|
|
composer install --no-progress --optimize-autoloader
|
|
yarn install
|
|
yarn encore dev
|
|
else
|
|
composer install --no-dev --no-progress --optimize-autoloader
|
|
yarn install
|
|
yarn encore production
|
|
fi
|
|
|
|
ln -s /var/lib/job-archive var/job-archive
|
|
fi
|
|
|
|
# Reports php environment on container startup
|
|
php bin/console about
|
|
|
|
exec "$@"
|