https://github.com/codeskyblue/adb
adb for docker armhf
https://github.com/codeskyblue/adb
adb arm raspberry rpi
Last synced: about 2 months ago
JSON representation
adb for docker armhf
- Host: GitHub
- URL: https://github.com/codeskyblue/adb
- Owner: codeskyblue
- License: apache-2.0
- Created: 2018-10-09T07:18:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T09:25:30.000Z (over 6 years ago)
- Last Synced: 2025-01-26T01:35:02.978Z (4 months ago)
- Topics: adb, arm, raspberry, rpi
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/codeskyblue/adb/
- Size: 3.43 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# adb Dockerfile for Linux(amd64 and armv7l)
## Usage
- The container needs extended privileges for USB access
- The host's /dev/bus/usb must be mounted on the containerThis usage pattern shares the ADB server container's network with ADB client containers.
Start the server:
```bash
docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb --name adbd codeskyblue/adb
```Then on the same machine:
```bash
docker run --rm -ti --net container:adbd codeskyblue/adb devices
```More usage reference
## Build
On linux amd64
```bash
docker build -t adb .
docker tag adb codeskyblue/adb:latest
docker push codeskyblue/adb:latest
```On linux armv7l(raspberry)
```bash
docker build -t adb -f Dockerfile.armv7l .
docker tag adb codeskyblue/adb:armv7l-latest
docker push codeskyblue/adb:armv7l-latest
```Push manifest
```bash
TAG=codeskyblue/adb:latest
docker manifest create $TAG codeskyblue/adb:latest codeskyblue/adb:armv7l-latest
docker manifest annotate $TAG codeskyblue/adb:latest --os linux --arch amd64
docker manifest annotate $TAG codeskyblue/adb:armv7l-latest --os linux --arch arm --variant v7
docker manifest push $TAG
# check
docker run --rm mplatform/mquery $TAG
```## Thanks
- [sorccu](https://github.com/sorccu)
-## LICENSE
[Apache v2](LICENSE)