-
Notifications
You must be signed in to change notification settings - Fork 18
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
docker images and permissions problems for /devel #464
Comments
as mentioned in #462 (comment) and SIRF-SuperBuild/docker/service.sh Lines 47 to 49 in f4b8f14
SIRF-Exercises . The error maybe is due to (on the host machine) SIRF-SuperBuild/docker/devel/SIRF-Exercises existing already but not as a directory?
Maybe need |
No. Nothing in devel aside from the 3 files
|
is |
assigning it to 3.0 although that might be too ambitious |
This worked fine on Travis, so maybe it's my local set-up, so I'll close this |
@casperdcl, @paskino and I looked at this in a bit more detail. Paskino and I saw that from in docker, Our current impression is that this only happens if we build a new image ourselves (in the VM), while it's fine in the image built in Travis. Any idea how we can make sure that the permission is ok? As it's mounted in the |
I discover that on the VM, |
If you build from scratch (rather than resuming from an existing/pulled image) in an env where SIRF-SuperBuild/docker/docker-compose.yml Lines 9 to 10 in 870a860
|
aha. So are you saying that when we build from scratch, we should set How come this is not necessary from a "pulled" image then? I suppose Somehow I'd prefer a solution where we fix this in the container (one option would be to add it to the |
yes
Entrypoint does indeed set perms SIRF-SuperBuild/docker/entrypoint.sh Line 22 in 870a860
but it would need again need
Windows basically ignores file ownership |
thanks! still a bit confused. without matching the
|
Are |
yes they are. for instance
|
Not |
Needs extra doc somewhere, but we can postpone that for later. |
I continue to have problems with this, now with a pulled Doing what @casperdcl recommends fails:
I can get further with the following by exporting
where you can see that SIRF-SuperBuild/docker/docker-compose.yml Lines 9 to 10 in d318854
to
or I use a different variable name, e.g.
and then do The only reason for this behaviour that I can see is that the Background readingHere's my current understanding on all this after reading up a bit, e.g. from https://blog.gougousis.net/file-permissions-the-painful-side-of-docker/. To quote from that website on the "source of all evil":
(Note that this is for Linux. On Mac, Docker uses NFS and apparently this doesn't give UID problems, and according to @casperdcl, neither are there problems on Windows). On the VM, there are 2 users: vagrant (uid 1000) and sirfuser (uid 1001). We log-in as sirfuser. Using On the container, SIRF-SuperBuild/docker/entrypoint.sh Lines 6 to 8 in d318854
SIRF-SuperBuild/docker/entrypoint.sh Lines 22 to 30 in d318854
/opt and $HOME set SIRF-SuperBuild/docker/entrypoint.sh Lines 34 to 39 in d318854
Those 2 container variables are (or should be) set from SIRF-SuperBuild/docker/docker-compose.yml Lines 9 to 10 in d318854
|
docker: fix UID/GID on Linux fixes #464
I've tried to get Docker going inside the VM (see also #462). The jupyter notebook server was running fine. However,
SIRF-exercises
was not in/devel
. This looks like a permission problem:I ran
./sirf-compose-service
as recommended.The text was updated successfully, but these errors were encountered: