Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dannielarriola opened this issue Jun 19, 2018 · 2 comments
Closed

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

dannielarriola opened this issue Jun 19, 2018 · 2 comments

Comments

@dannielarriola
Copy link

dannielarriola commented Jun 19, 2018

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

Is there any way to avoid this?

@regisb
Copy link
Contributor

regisb commented Jun 19, 2018

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
...

@dannielarriola
Copy link
Author

Great, Thanks

@regisb regisb closed this as completed Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants