You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was making a docker environment for maestro and also installed platform tools (adb), issue is i am able to list devices via adb installed in container, but when i try to use maestro command with same emulators i am unable to do so.
commands i am using :
root@docker-desktop:/mnt/testfiles# adb devices
List of devices attached
emulator-5554 device
emulator-5556 device
emulator-5558 device
emulator-5560 device
root@docker-desktop:/mnt/testfiles# maestro --verbose --device emulator-5554 test current.yaml
[ INFO] ---- System Info ----
[ INFO] Maestro Version: 1.39.2
[ INFO] CI: Undefined
[ INFO] OS Name: Linux
[ INFO] OS Version: 6.10.14-linuxkit
[ INFO] Architecture: amd64
[ INFO] Java Version: 17
[ INFO] Xcode Version: null
[ INFO] Flutter Version: Undefined
[ INFO] Flutter Channel: Undefined
[ INFO] ---------------------
Device emulator-5554 was requested, but it is not connected.
My Docker file :
`# Use a specific platform to avoid architecture issues
FROM --platform=linux/amd64 python:3.9-slim
Set Maestro version
ENV MAESTRO_VERSION=1.39.2
Ensure apt repositories are updated correctly and install required packages
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hii there,
i was making a docker environment for maestro and also installed platform tools (adb), issue is i am able to list devices via adb installed in container, but when i try to use maestro command with same emulators i am unable to do so.
commands i am using :
root@docker-desktop:/mnt/testfiles# adb devices
List of devices attached
emulator-5554 device
emulator-5556 device
emulator-5558 device
emulator-5560 device
root@docker-desktop:/mnt/testfiles# maestro --verbose --device emulator-5554 test current.yaml
[ INFO] ---- System Info ----
[ INFO] Maestro Version: 1.39.2
[ INFO] CI: Undefined
[ INFO] OS Name: Linux
[ INFO] OS Version: 6.10.14-linuxkit
[ INFO] Architecture: amd64
[ INFO] Java Version: 17
[ INFO] Xcode Version: null
[ INFO] Flutter Version: Undefined
[ INFO] Flutter Channel: Undefined
[ INFO] ---------------------
Device emulator-5554 was requested, but it is not connected.
My Docker file :
`# Use a specific platform to avoid architecture issues
FROM --platform=linux/amd64 python:3.9-slim
Set Maestro version
ENV MAESTRO_VERSION=1.39.2
Ensure apt repositories are updated correctly and install required packages
RUN apt-get update && apt-get install -y
curl
unzip
openjdk-17-jre-headless
wget
android-tools-adb \
&& rm -rf /var/lib/apt/lists/*
Install Maestro CLI
RUN mkdir -p /opt/maestro &&
wget -q -O /tmp/${MAESTRO_VERSION}.zip "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${MAESTRO_VERSION}/maestro.zip" &&
unzip -q /tmp/${MAESTRO_VERSION}.zip -d /opt/maestro &&
rm /tmp/${MAESTRO_VERSION}.zip
Add Maestro CLI to PATH
ENV PATH="/opt/maestro/maestro/bin:${PATH}"
WORKDIR /app
Keep container running
CMD ["tail", "-f", "/dev/null"]`
Beta Was this translation helpful? Give feedback.
All reactions