tutor icon indicating copy to clipboard operation
tutor copied to clipboard

"creating new user 'openedx' with UID" takes a long time

Open dannielarriola opened this issue 8 years ago • 2 comments

This happens when I recreate the images or when I create a staff user

Is there any way to avoid this?

dannielarriola avatar Jun 19 '18 01:06 dannielarriola

A new user is created so that files generated by the containers have the same user ID as the user that launch the commands on thehost. What takes time is not so much the user creation but the chown -R command that follows: https://github.com/regisb/openedx-docker/blob/master/openedx/bin/docker-entrypoint.sh#L12 Speed depends on the speed of your hard disk (I guess...).

To avoid this step, just set the USERID environment variable to 0:

export USERID=0
make lms
...

regisb avatar Jun 19 '18 05:06 regisb

Great, Thanks

dannielarriola avatar Jun 19 '18 18:06 dannielarriola