Skip to content

Commit

Permalink
small fixes to test image build speed
Browse files Browse the repository at this point in the history
  • Loading branch information
mollux committed Jan 7, 2024
1 parent 90753d7 commit 6ea0dc1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common/entrypoint_mautic_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ $parameters = array(
'db_table_prefix' => null,
'db_backup_tables' => 1,
'db_backup_prefix' => 'bak_',
'messenger_dsn_email' => 'doctrine://default',
'messenger_dsn_hit' => 'doctrine://default',
'messenger_dsn_email' => 'doctrine://default',
'messenger_dsn_hit' => 'doctrine://default',
);
EOF
fi

# prepare mautic with test data
if [ "$MAUTIC_LOAD_TEST_DATA" = "true" ]; then
su -s /bin/bash www-data -c 'php /var/www/html/bin/console doctrine:migrations:sync-metadata-storage'
su -s /bin/bash www-data -c 'php /var/www/html/bin/console mautic:install --force --admin_email willchange@mautic.org --admin_password willchange http://localhost'
# mautic installation with dummy password and email, as the next step (doctrine:fixtures:load) will overwrite those
su -s /bin/bash www-data -c 'php /var/www/html/bin/console mautic:install --force --admin_email willchange@mautic.org --admin_password willchange http://localhost'
su -s /bin/bash www-data -c 'php /var/www/html/bin/console doctrine:fixtures:load -n'
fi

Expand Down

0 comments on commit 6ea0dc1

Please sign in to comment.