add library path, use current uid at runtime, so homedir is accessible

This commit is contained in:
Marcel Wysocki 2017-12-13 23:13:32 +01:00
parent 2fe08ebcd9
commit b8105e4efb
2 changed files with 8 additions and 3 deletions

View file

@ -18,6 +18,7 @@ RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/Mephisto
pip install -r requirements.txt;\
EXTRA_CC_FLAGS="-I ../usr/include" EXTRA_LD_FLAGS="-L ../usr/lib" make
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nonexistent/usr/lib
EXPOSE 24689

View file

@ -80,13 +80,17 @@ To run Mephisto it needs access to your NSO/NRO files, make sure to bind mount t
__Example:__
```bash
docker run -ti --rm -p 24689:24689 -v $HOME:$HOME reswitched/mephisto --load-nro $HOME/Coding/libtransistor/build/test/test_helloworld.nro
docker run -ti --rm -p 24689:24689 -v $HOME:$HOME -u $UID reswitched/mephisto --load-nro $HOME/Coding/libtransistor/build/test/test_helloworld.nro
```
You can also create a bash alias.
```
alias ctu='docker run -ti --rm -p 24689:24689 -v $HOME:$HOME reswitched/mephisto'
alias ctu='docker run -ti --rm -p 24689:24689 -v $HOME:$HOME -u $UID reswitched/mephisto'
```
Now you can simply run `ctu` with your desired arguments.
Now you can simply run `ctu` with your desired arguments.
__Example:__
```bash
ctu --load-nro $HOME/Coding/libtransistor/build/test/test_helloworld.nro
```