diff --git a/README_CUSTOM_CONFIG.md b/README_CUSTOM_CONFIG.md index aad2f8d..02ebc71 100644 --- a/README_CUSTOM_CONFIG.md +++ b/README_CUSTOM_CONFIG.md @@ -32,6 +32,11 @@ If you want to add more arguments for running emulator, you can ***pass an envir docker run --privileged -d -p 6080:6080 -p 4723:4723 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-no-snapshot-load -partition-size 512" --name android-container budtmo/docker-android-x86-8.1 ``` +Appium Test Distribution (ATD) +------------------------------ + +You can enable [ATD](https://github.com/AppiumTestDistribution/AppiumTestDistribution) by passing environment variable ATD=true and bind the port to the host, e.g. -p 4567:4567 + SaltStack --------- diff --git a/src/atd.sh b/src/atd.sh new file mode 100755 index 0000000..35111d7 --- /dev/null +++ b/src/atd.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ "$ATD" = true ]; then + echo "Starting ATD..." + java -jar /root/RemoteAppiumManager.jar -DPort=4567 +fi diff --git a/supervisord.conf b/supervisord.conf index ba36e0a..ccdcfbb 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -43,6 +43,13 @@ stdout_logfile=%(ENV_LOG_PATH)s/android-screen-mirror.stdout.log stderr_logfile=%(ENV_LOG_PATH)s/android-screen-mirror.stderr.log priority=3 +[program:atd] +command=./src/atd.sh +autorestart=false +stdout_logfile=%(ENV_LOG_PATH)s/atd.stdout.log +stderr_logfile=%(ENV_LOG_PATH)s/atd.stderr.log +priority=4 + [program:docker-appium] command=./src/appium.sh autorestart=false