Browse Source

New version file

bernhardbuhl 3 years ago
parent
commit
cab729402e
2 changed files with 11 additions and 2 deletions
  1. 10 1
      Dockerfile
  2. 1 1
      start.sh

+ 10 - 1
Dockerfile

@@ -142,6 +142,9 @@ RUN git fetch origin
 RUN git checkout Appium
 RUN pip3 install -r requirements.txt
 
+# Make browsermob-proxy executable
+RUN chmod +x /baangt/browsermob-proxy/bin/browsermob-proxy
+
 EXPOSE 5901
 ENV USER root
 CMD [ "/root/start-vncserver.sh" ]
@@ -149,4 +152,10 @@ CMD [ "/root/start-vncserver.sh" ]
 # Notes
 # advmanager create avd --device 20 --package 'system-images;android-25;google_apis;armeabi_v7a' -n '27inch_arm" creates
 # a smaller device screen.
-# can be run with
+# can be run with
+
+# sdkmanager --list gives list of available images. For this docker container, only *;armeabi-v7a seems to work
+# avdmanager list gives all available device listings.
+# avdmanager -device 20 is small, but seems too small. Got working older Android (_10, 21) but these don't have ADB enabled,
+#            so not usable for appium
+# avdmanager -device 7 (Nexus 4)

+ 1 - 1
start.sh

@@ -12,7 +12,7 @@ function wait_emulator_to_be_ready() {
   adb devices | grep emulator | cut -f1 | while read line; do adb -s $line emu kill; done
   # This command worked inside the original docker container:
   # emulator -avd android_arm -no-window -no-accel -timezone Europe/Paris -no-boot-anim -noaudio
-  emulator -avd "${emulator_name}" -verbose -no-boot-anim -gpu swiftshader_indirect -timezone Europe/Paris -noaudio -no-accel -netspeed full -camera-back none -camera-front none -memory 2048 -screen no-touch -logcat "*:w" &
+  emulator -avd "${emulator_name}" -verbose -no-boot-anim -gpu swiftshader_indirect -timezone Europe/Paris -noaudio -no-accel -netspeed full -camera-back none -camera-front none -logcat "*:w" &
   boot_completed=false
   while [ "$boot_completed" == false ]; do
     status=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')