mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-06-16 03:16:50 -04:00
add library path, use current uid at runtime, so homedir is accessible
This commit is contained in:
parent
2fe08ebcd9
commit
b8105e4efb
|
@ -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
|
||||
|
||||
|
|
10
README.md
10
README.md
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue