Open xi-ao opened 5 years ago
@xi-ao Perhaps the change can be as simple as adding a new user in the dockerfile like
RUN useradd app
USER app
and then you can run docker run --rm -u app:app -it -v $(pwd):/tmp textql -header -sql "select count() from test" test.csv
Let me if this solution looks good to you. I can open a PR.
The advice of creating such an alias in the README is really good and works well:
but the problem with it is that it runs
textql
as root and so the output files are created with that user.Ideally, the solution would be to use this command instead:
which works fine when called like this
but not when an actual SQL processing is requested:
Is there a way to fix that?