DeviceFarmer / stf

Control and manage Android devices from your browser.

Home Page:https://devicefarmer.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STF clock time

FRodero opened this issue · comments

What is the issue or idea you have?
I need to update the time inside STF. I have got right time inside de container with docker-compose but STF go on with wrong date.

Please provide the steps to reproduce the issue.

What is the expected behavior?
Have the same date as container has fixed. Europe/Madrid time.
Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.
container:
"root@27a2f38b35e3:/app# date
Mon Jun 10 13:12:20 CEST 2024"
STF: "stf-local | 2024-06-10T11:12:09.254Z IMP/device:plugins:group 192 [RZCTB0TRLKD] No longer owned by "Rad69181229@movilab.net""

version: "3"

services:
rethinkdb:
container_name: rethinkdb
image: rethinkdb:2.3
restart: always
environment:
- TZ=Europe/Madrid
volumes:
- "/home/stf/stf-docker/rethinkdb:/home/stf/stf-docker/data"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
command: "rethinkdb --bind all --cache-size 2048"

adbd:
container_name: adbd
image: devicefarmer/adb:latest
restart: always
environment:
- TZ=Europe/Madrid
volumes:
- "/dev/bus/usb:/dev/bus/usb"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
privileged: true

stf-local:
container_name: stf-local
image: devicefarmer/stf
ports:
- "7100:7100"
- "7110:7110"
- "7400-7500:7400-7500"
environment:
- TZ=Europe/Madrid
- RETHINKDB_PORT_28015_TCP=tcp://rethinkdb:28015
restart: always
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "/home/stf/stf-docker/dist:/app/node_modules/stf-device-db/dist"
command: stf local --public-ip 192.168.85.86 --allow-remote --no-cleanup --adb-host adbd

commented

I've also encountered this question of yours. What I do is convert the container to an image and then create the container with the new image. Googling everything else is futile to no avail.