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

moodledocker-exec does not work at all if any(!) project uses a static moodle source #5

Open
Dagefoerde opened this issue Apr 13, 2017 · 1 comment

Comments

@Dagefoerde
Copy link
Member

If any project uses a static moodle source - instead of a symlink to some repository located elsewhere - moodledocker-exec will fail since File.readlink cannot be applied to a non-link.

home/j_dage01/Docker/Metafiles/Scripts/moodledocker-common.rb:62:in `readlink': Invalid argument @ rb_readlink - /home/j_dage01/Docker/production3_0/moodle (Errno::EINVAL)
        from /home/j_dage01/Docker/Metafiles/Scripts/moodledocker-common.rb:62:in `block in project_name'
        from /home/j_dage01/Docker/Metafiles/Scripts/moodledocker-common.rb:62:in `select'
        from /home/j_dage01/Docker/Metafiles/Scripts/moodledocker-common.rb:62:in `project_name'
        from /home/j_dage01/Docker/Metafiles/Scripts/moodledocker-exec:9:in `execute_on_docker'
        from /home/j_dage01/Docker/Metafiles/Scripts/moodledocker-exec:33:in `<main>'

a0a99e8 fixes this for project_path, but project_name is more complex so that the fix cannot be applied identically.

@Dagefoerde Dagefoerde changed the title moodledocker-exec does not work at all if any(!) projects use a static moodle source moodledocker-exec does not work at all if any(!) project uses a static moodle source Apr 28, 2017
@dashohoxha
Copy link

I don't have any actual suggestion for fixing this problem, but have a look at my approach and maybe you will get some inspiration:

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