hirak / prestissimo

composer parallel install plugin
MIT License
6.19k stars 170 forks source link

Not working when using other user than root? #149

Open it-can opened 7 years ago

it-can commented 7 years ago

Hi,

I am using this on my machine, where I have multiple users (I installed this per user, composer global require hirak/prestissimo The plugin is installed correctly (per user), but the parallel downloading is not working. Composer just downloads packages one by one... Am I doing something wrong?

romainruaud commented 7 years ago

+1

Andreas-Halemba commented 6 years ago

+1 is there any option to get this running under nonroot users?

I got it working as a non root user by installing it as the user i want it to be ran as.

Here some dockerfile stuff i am using now.

USER www-data

RUN composer global require hirak/prestissimo

RUN composer install -d /var/www --no-progress --profile --prefer-dist

RUN composer global remove hirak/prestissimo

You see i switch user to www-data than install it than i run my composer install and than i remove it because i dont need it any more.

seyfer commented 5 years ago

If I want to install it only under user it then I do this

USER it
RUN composer global require hirak/prestissimo
USER root

but when I log into a container with user it and do composer install - prestissimo doesn't work. why?