Skip to content

Commit

Permalink
fga-eps-mds#175 - Adding usb device to connect react-native
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronyell authored and ThalissonMelo committed Jun 12, 2018
1 parent 8c10693 commit f313be2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ react-native-packager-cache*
haste-map-react-native-packager*
.env
android/build/
android/.gradle/
android/app/build/

7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ merenda-merenda:
build: .
volumes:
- .:/code
- /dev/bus/usb:/dev/bus/usb
privileged: true
working_dir: /code
net: host
ports:
- "8081:8081"
environment:
- DISPLAY=$DISPLAY
- DISPLAY=$DISPLAY
command: |
bash -c "
lsusb
npm install --loglevel verbose
adb reverse tcp:8081 tcp:8081
react-native run-android
"

0 comments on commit f313be2

Please sign in to comment.