forked from fga-eps-mds/2017.2-MerendaMais
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fga-eps-mds#175 - Modifying docker to run application in emulator
- Loading branch information
Showing
2 changed files
with
50 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
android-emulator-merenda: | ||
merenda-merenda: | ||
build: . | ||
volumes: | ||
- .:/code | ||
privileged: true | ||
working_dir: /code | ||
net: host | ||
environment: | ||
- DISPLAY=$DISPLAY | ||
command: | | ||
bash -c " | ||
cd /code/ && npm install | ||
npm install --loglevel verbose | ||
adb reverse tcp:8081 tcp:8081 | ||
/app/android-sdk-linux/tools/android list avd | ||
/app/android-sdk-linux/tools/emulator -avd android-emulator & . | ||
sleep 2m && npm run android | ||
react-native run-android & . | ||
/app/android-sdk-linux/tools/emulator -avd emulator-android | ||
" |