Last active
March 5, 2023 04:41
-
-
Save srz-zumix/00ec7fd56380f8fd6ac17d7e1093a760 to your computer and use it in GitHub Desktop.
OpenSTF(DeviceFarmer/stf) for Windows Docker
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
version: '2' | |
services: | |
stfdb: | |
image: rethinkdb:2 | |
restart: always | |
ports: | |
- 8082:8080 | |
- 28015:28015 | |
volumes: | |
- db_data:/data | |
command: rethinkdb --bind all | |
# db 起動後 Data Explorer で下記コマンド実行 | |
# r.db('rethinkdb').table('users').get('admin').update({password:'admin'}) | |
stf: | |
image: openstf/stf | |
restart: always | |
ports: | |
- 7100:7100 | |
- 7110:7110 | |
- 7400-7679:7400-7679 | |
links: | |
- stfdb:stfdb | |
environment: | |
- RETHINKDB_PORT_28015_TCP=tcp://stfdb:28015 | |
- RETHINKDB_ENV_DATABASE=stf | |
- RETHINKDB_ENV_AUTHKEY=admin | |
command: stf local --no-cleanup --allow-remote --public-ip host.docker.internal --adb-host host.docker.internal --provider-max-port 7679 | |
volumes: | |
db_data: | |
external: true | |
# ※ 自分以外も使うなら --public-ip を適切なものに変えておく | |
# 1. docker volume create --name=db_data | |
# 2. docker-compose up -d stfdb | |
# 3. localhost:8082 をブラウザで開く | |
# 4. コメントの通りにコマンド実行 | |
# 5. docker-compose up -d | |
# 6. localhost:7100 を確認 | |
# 7. 端末接続 | |
# 8. 認識しないようであれば adb start-server コマンドを実行してみる |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.