Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Last active March 5, 2023 04:41
Show Gist options
  • Save srz-zumix/00ec7fd56380f8fd6ac17d7e1093a760 to your computer and use it in GitHub Desktop.
Save srz-zumix/00ec7fd56380f8fd6ac17d7e1093a760 to your computer and use it in GitHub Desktop.
OpenSTF(DeviceFarmer/stf) for Windows Docker
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 コマンドを実行してみる
@gounthar
Copy link

My fault, everything is available on all interfaces, so my local address also works.
Kudos!

@srz-zumix
Copy link
Author

srz-zumix commented Aug 12, 2022

Try change to --public-ip <your machine ip>

@gounthar
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment