Skip to content

Commit

Permalink
fix: improve startup speed
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Aug 14, 2023
1 parent 0239d57 commit b941795
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 333 deletions.
6 changes: 5 additions & 1 deletion images/6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ RUN /usr/bin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/li
composer req "frosh/tools:*" "frosh/adminer-platform:*" --no-scripts && \
composer remove --dev shopware/dev-tools --no-scripts && \
composer install --no-dev --no-scripts && \
chown -R 1000 /var/www/shop
php bin/console store:download -p SwagLanguagePack && \
git clone https://github.com/shopwareLabs/SwagTestEnvironment.git /var/www/shop/custom/plugins/SwagTestEnvironment --depth=1 && \
php bin/console plugin:refresh && \
php bin/console plugin:install -n --activate SwagLanguagePack FroshPlatformAdminer SwagTestEnvironment FroshTools && \
chown -R 1000 /var/www/shop /tmp/composer

COPY rootfs /

Expand Down
10 changes: 0 additions & 10 deletions images/6/rootfs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,8 @@ else
mysql -proot shopware -e "UPDATE sales_channel_domain set url = 'http://${VIRTUAL_HOST}/shop/public' where url = 'http://localhost/shop/public'"
fi

sudo -u www-data git clone https://github.com/shopwareLabs/SwagTestEnvironment.git /var/www/shop/custom/plugins/SwagTestEnvironment --depth=1

rm -rf /var/www/shop/var/cache/* || true

sudo -E -u www-data /var/www/shop/bin/console store:download -p SwagLanguagePack
sudo -E -u www-data /var/www/shop/bin/console plugin:refresh
sudo -E -u www-data /var/www/shop/bin/console plugin:install -n --activate SwagLanguagePack


sudo -E -u www-data /var/www/shop/bin/console plugin:install -n --activate FroshPlatformAdminer SwagTestEnvironment
sudo -E -u www-data /var/www/shop/bin/console plugin:install -n --activate FroshTools

if [[ -n $SHOPWARE_DEMO_USER_PASSWORD ]]; then
sudo -E -u www-data /var/www/shop/bin/console frosh:user:change:password demo "$SHOPWARE_DEMO_USER_PASSWORD"
fi
Expand Down
322 changes: 0 additions & 322 deletions images/6/rootfs/fix-install.php

This file was deleted.

0 comments on commit b941795

Please sign in to comment.