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

Question really, how do you load data to the Wine Z:/ filesystem #3

Open
muskox opened this issue May 15, 2023 · 2 comments
Open

Question really, how do you load data to the Wine Z:/ filesystem #3

muskox opened this issue May 15, 2023 · 2 comments

Comments

@muskox
Copy link

muskox commented May 15, 2023

Hello Matioupi,

I've had more time to play with this. The installation worked and docs are great. When I run:

docker run --rm -v "$(pwd):/data" muskox/trm2rinex:cli-light data/TEST1310.T02 -p data/out -n -d -co -s -v 3.04 -h 0.1387
Error: CtrimbleFile - unable to open file:Z:\data\TEST1310.T02Open

As you can see, I do not have data in the Wine Z:/ filesystem. My ignorance is I know linux but not Wine, so I don't know how to get it there.

I used your notes in the README and did

docker run -it --rm muskox/trm2rinex:cli-light /bin/bash

and I can get into the container filesystem. I could copy things into /home/trm2rinex via the docker run command. Is this the best way to do this? I'd love to hear any tips or tricks that you have.

Thank you for making this tool,

Scott

@Matioupi
Copy link
Owner

Hello, although I don't have many inputs to provide further help, the symptom looks like it is most probably related to access rights management.

the output of command id (outside the container) will provide you the uid and gid for your user (or run it for the user which should execute the docker command if different). On my setup, it default to uid=1000 and gid=1000. If its different on yours, then you want to adapt the docker build file so that the user inside the container have the same uid / gid, which will ease the access rights management.
Also make sure that your user is part of docker group which is probably already the case, and that the user with 1000:1000 (or your setting) has access to the input data file and directory in read and write mode.

Then about the best way to use the container. I think it's probably with the example syntax you are trying so far (using mounted directory from outside the container) rather than copying the files inside the container which will be tedious and hard to repeat on a scheduled task. This is the way I'm using it to generate the data for my CORS station.

@muskox
Copy link
Author

muskox commented May 16, 2023

Thank you, I really appreciate your response. I will try out what you said.
Cheers,
Scott

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