Added SaltStack
This commit is contained in:
parent
7d63eac5ae
commit
4d4c22124f
|
@ -31,6 +31,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
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
SaltStack
|
||||||
|
---------
|
||||||
|
|
||||||
|
You can enable [SaltStack](https://github.com/saltstack/salt) to control running containers by passing environment variable SALT_MASTER=<ip_address_of_salt_master>.
|
||||||
|
|
||||||
Back & Restore
|
Back & Restore
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM appium/appium:1.11.1-p0
|
FROM appium/appium:1.11.1-p1
|
||||||
|
|
||||||
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM appium/appium:1.11.1-p0
|
FROM appium/appium:1.11.1-p1
|
||||||
|
|
||||||
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM appium/appium:1.11.1-p0
|
FROM appium/appium:1.11.1-p1
|
||||||
|
|
||||||
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,19 @@ function ga(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function saltstack(){
|
||||||
|
if [ ! -z "${SALT_MASTER}" ]; then
|
||||||
|
echo "ENV SALT_MASTER it not empty, salt-minion will be prepared"
|
||||||
|
echo "master: ${SALT_MASTER}" >> /etc/salt/minion
|
||||||
|
salt-minion &
|
||||||
|
echo "salt-minion is running..."
|
||||||
|
else
|
||||||
|
echo "SaltStack is disabled"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
ga
|
ga
|
||||||
|
saltstack
|
||||||
if [ "$REAL_DEVICE" = true ]; then
|
if [ "$REAL_DEVICE" = true ]; then
|
||||||
echo "Using real device"
|
echo "Using real device"
|
||||||
run_appium
|
run_appium
|
||||||
|
|
Loading…
Reference in a new issue