-
Notifications
You must be signed in to change notification settings - Fork 58
Conversation
3009 has never been the CLSI port - it's the filestore port. I must have been confused when I added that to the notes! |
There are a number of environment variables missing from the list. These are the ones I found going through the setting file:
|
These instructions don't work as is on Linux, because the
See this internal issue: https://github.com/overleaf/dev-environment/issues/79 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for picking this up! I think the path to the default settings file should be changed. If you've got the time it would be great to add the extra env vars in to the README.
I've never found an entirely satisfactory solution to the Linux file permission mapping. In the dev environment we fudged around it by changing the uid of my Ubuntu account from 1001 to 1000 to match the tex
user in our gcr.io/overleaf-ops/texlive-full
image.
I couldn't find a more appropriate user in the |
If you wouldn't mind adding them in a separate PR that might be better, as I'm not sure of the description needed for each one. |
It may be worth asking... do we need to bind mount |
Add missing environment variables to CLSI README.
Currently a folder on the host (e.g.
Is it worth writing up an issue for this? |
Right, it doesn't seem to be possible. moby/moby#32582 You could in theory mount the whole named volume somewhere without read access and symlink the project folder into somewhere with read access, but that would be a bit risky. |
Good points, thanks! I think we can forget about my comment, in that case. I have given the upstream issue a 👍 . |
Okay, not quite sure where to go next with this. There are some good improvements to the README in the PR, but I feel we should at least acknowledge that the instructions won't work if followed literally on most Linux setups. |
To make it work on Linux, is it enough to comment out the |
Updated to move the |
Unfortunately that gives the error Possibly one could provide instructions for building an image based on Tex Live which contained an additional user. I think you would still need to make the uids of the users in the images match with the uid of the host user. |
If it's not currently possible to make this work on Linux then I'll propose merging this and updating it when there's a solution. |
@mans0954 Would documenting this workaround that you proposed earlier make sense instead? sudo chown -R mans0954:root compiles/
sudo chmod g+w -R compiles/ |
Yes, I think that was what I originally had in mind! |
Updated with instructions for changing permissions on the |
To be honest, it's a bit more complicated than that. I'll try to write something up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've written something about the permissions issue on Linux. It's complicated as some distros use 1000 as the uid for the first normal user and some use 1001.
This updates the README with instructions for running the CLSI in Docker using the
texlive/texlive
image for sibling containers.