Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #75 from AkihiroSuda/clean-up-doc
Browse files Browse the repository at this point in the history
clean up documents
  • Loading branch information
AkihiroSuda authored May 12, 2021
2 parents 8f069af + 6fc7cf9 commit c7720b3
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ sudo modprobe ashmem_linux
sudo modprobe binder_linux
```

### Docker
#### VNC
```bash
docker run -td --name aind --privileged -p 5900:5900 -v /lib/modules:/lib/modules:ro aind/aind
```

to run the container with novnc support the environment variable WEBMODE canbe set with the following command
the container will be accessible via the browser at http://localhost:8080/vnc.html
```bash
docker run -td --name aind --privileged -p 8080:8080 -e "WEBMODE=1" -v /lib/modules:/lib/modules:ro aind/aind
docker exec aind cat /home/user/.vnc/passwdfile
```

Expand All @@ -79,14 +75,30 @@ The VNC password is stored in `/home/user/.vnc/passwdfile`. The password file ca

If the application manager doesn't shown up on the VNC screen, try `docker run ...` several times (FIXME). Also make sure to check `docker logs aind`.

Future version will support connection from Web browsers (of phones and tablets) without VNC.
#### Web mode (noVNC)
To run the container with [noVNC](https://novnc.com/) support, the environment variable `WEBMODE` can be set with the following command:

### Troubleshooting
```bash
docker run -td --name aind --privileged -p 8080:8080 -e "WEBMODE=1" -v /lib/modules:/lib/modules:ro aind/aind
docker exec aind cat /home/user/.vnc/passwdfile
```

* `docker logs aind`
* `docker exec -it aind systemctl status anbox-container-manager`
* `docker exec -it aind ps -ef`
* `docker exec -it aind cat /var/lib/anbox/logs/console.log`
The container will be accessible via the browser at http://localhost:8080/vnc.html

### Docker Compose

To bring the container up simply run
```
docker-compose up -d
```
the vnc password can be gotten with
```
docker-compose exec aind cat /home/user/.vnc/passwdfile
```
you can check how far it is with
```
docker-compose exec aind ps -ef
```

### Kubernetes

Expand All @@ -111,22 +123,14 @@ The manifest is known to work on:
- Kubernetes 1.17.0, Ubuntu 19.10, Kernel 5.3.0-46-generic, containerd 1.3.2
- **NOTE**: Requires `docker exec kind-control-plane mount -o remount,rw /sys`

### Docker Compose
## Tips

To bring the container up simply run
```
docker-compose up -d
```
the vnc password can be gotten with
```
docker-compose exec aind cat /home/user/.vnc/passwdfile
```
you can check how far it is with
```
docker-compose exec aind ps -ef
```
### Troubleshooting

## Tips
* `docker logs aind`
* `docker exec -it aind systemctl status anbox-container-manager`
* `docker exec -it aind ps -ef`
* `docker exec -it aind cat /var/lib/anbox/logs/console.log`

### adb

Expand Down

0 comments on commit c7720b3

Please sign in to comment.