feat(composer): improve performance
hirak/prestissimo install composer package in parallelpull/34/head
parent
032c55b304
commit
59d39362de
|
@ -41,6 +41,7 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.8/community" >> /etc/a
|
||||||
&& cd /tmp \
|
&& cd /tmp \
|
||||||
&& curl -s http://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -s http://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
&& chmod +x /usr/local/bin/composer \
|
&& chmod +x /usr/local/bin/composer \
|
||||||
|
&& composer global require hirak/prestissimo \
|
||||||
&& mkdir -p /flarum/app \
|
&& mkdir -p /flarum/app \
|
||||||
&& chown -R $UID:$GID /flarum \
|
&& chown -R $UID:$GID /flarum \
|
||||||
&& COMPOSER_CACHE_DIR="/tmp" su-exec $UID:$GID composer create-project flarum/flarum /flarum/app $VERSION --stability=beta \
|
&& COMPOSER_CACHE_DIR="/tmp" su-exec $UID:$GID composer create-project flarum/flarum /flarum/app $VERSION --stability=beta \
|
||||||
|
|
|
@ -78,10 +78,10 @@ if [ -e '/flarum/app/public/assets/installed.txt' ]; then
|
||||||
# Download extra extensions installed with composer wrapup script
|
# Download extra extensions installed with composer wrapup script
|
||||||
if [ -s "$LIST_FILE" ]; then
|
if [ -s "$LIST_FILE" ]; then
|
||||||
echo "[INFO] Install extra bundled extensions"
|
echo "[INFO] Install extra bundled extensions"
|
||||||
while read extension; do
|
while read line; do
|
||||||
echo "[INFO] -------------- Install extension : ${extension} --------------"
|
extension="$extension $line"
|
||||||
COMPOSER_CACHE_DIR="$CACHE_DIR" su-exec $UID:$GID composer require "$extension"
|
|
||||||
done < "$LIST_FILE"
|
done < "$LIST_FILE"
|
||||||
|
COMPOSER_CACHE_DIR="$CACHE_DIR" su-exec $UID:$GID composer require "$extension"
|
||||||
echo "[INFO] Install extra bundled extensions. DONE."
|
echo "[INFO] Install extra bundled extensions. DONE."
|
||||||
else
|
else
|
||||||
echo "[INFO] No installed extensions"
|
echo "[INFO] No installed extensions"
|
||||||
|
|
Loading…
Reference in New Issue